:root {
  --theme-bg: #0b0b0b;
  --theme-text: #f9fafb;
  --theme-muted: #9ca3af;
  --theme-muted-2: #6b7280;
  --theme-card: rgba(255, 255, 255, 0.08);
  --theme-card-hover: rgba(255, 255, 255, 0.16);
  --theme-border: rgba(255, 255, 255, 0.18);
  --theme-input: rgba(0, 0, 0, 0.4);
  --theme-popup-bg: #111827;
  --theme-popup-text: #f9fafb;
  --theme-popup-border: rgba(255, 255, 255, 0.12);
}

body {

  background: var(--site-bg, var(--theme-bg)) no-repeat fixed;
  background-size: cover;
  background-position: center;
  min-height: 100vh;

  background: var(--site-bg, var(--theme-bg)) !important;
  background-repeat: var(--site-bg-repeat, no-repeat) !important;
  background-attachment: var(--site-bg-attachment, fixed) !important;
  background-size: var(--site-bg-size, cover) !important;
  background-position: var(--site-bg-position, center) !important;
  color: var(--theme-text);
}

.theme-logo {
  transition: filter 0.2s ease;
}

#search-container {
  background: var(--site-bg, var(--theme-card));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: var(--theme-border);
}

#search-input {
  background-color: var(--theme-input);
  color: var(--theme-text);
  border-color: var(--theme-border);
}

#search-input::placeholder {
  color: var(--theme-muted-2);
}

#graphcomment {
  background-color: var(--theme-card);
  color: var(--theme-text);
}

.frame-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: var(--frame-padding, 0.35rem);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-sizing: border-box;
}

.frame-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--frame-overlay, none);
  opacity: var(--frame-overlay-opacity, 0);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

.frame-shell.has-frame {
  --frame-padding: 0.25rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.frame-shell.no-frame {
  --frame-padding: 0;
}

.frame-avatar {
  border-radius: 9999px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  display: block;
}

.frame-shell.has-frame .frame-avatar {
  border-color: transparent !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.frame-shell .frame-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
}

.comment-frame-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  --comment-avatar-size: 48px;
  --comment-frame-size: 64px;
  width: var(--comment-frame-size);
  height: var(--comment-frame-size);
  padding: 0;
  pointer-events: none;
}

.comment-frame-wrap .frame-avatar {
  width: var(--comment-avatar-size);
  height: var(--comment-avatar-size);
}

.comment-frame-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

.comment-body.spoiler-revealed {
  color: inherit;
}

.comment-body .spoiler-body {
  padding-top: 0.5rem;
}


.profile-frame-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: fit-content;
  padding: 30px;
  pointer-events: none;
}

.profile-frame-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

.zoro-hair-wrap {
  position: relative;
  width: fit-content;
}

.zoro-hair-image {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  
  height: auto;
  z-index: 3;
  cursor: zoom-in;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}


.frame-image-modal {

.zoro-hair-modal {

  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}


.frame-image-modal.is-open {

.zoro-hair-modal.is-open {

  opacity: 1;
  visibility: visible;
}


.frame-image-modal img {

.zoro-hair-modal img {

  max-width: min(92vw, 520px);
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.comment-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.55));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.comment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.15), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.comment-card:hover::before {
  opacity: 1;
}

.comment-card a {
  text-decoration: none;
}
