*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
::selection {
  background: rgba(168, 155, 181, 0.25);
  color: #d4c7e0;
}
html {
  font-size: 14px;
  scroll-behavior: smooth;
}
html, body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
}
body {
  font-family: 'JetBrains Mono', 'Noto Sans', monospace;
  font-weight: 300;
  background: #0a0a0a;
  color: #a89bb5;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "rlig" 1, "dlig" 1;
  font-optical-sizing: auto;
  font-variant-ligatures: common-ligatures contextual discretionary-ligatures historical-ligatures;
  -webkit-font-variant-ligatures: common-ligatures contextual discretionary-ligatures historical-ligatures;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: #a89bb5;
  text-decoration: none;
  transition: color 0.4s ease;
}
a:hover {
  color: #d4c7e0;
}
.glow {
  position: fixed;
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 40% 50%, rgba(168, 155, 181, 0.025) 0%, transparent 60%);
}
main {
  max-width: 600px;
  margin: 0 auto;
  padding: 6rem 2rem;
  min-height: 100vh;
}
header {
  margin-bottom: 5rem;
}
h1 {
  font-size: 1.35rem;
  font-weight: 300;
  color: #bdb0cc;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.tagline {
  font-size: 0.75rem;
  color: #7b6e8a;
  line-height: 1.7;
  max-width: 420px;
}
.nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: 0.7rem;
}
.nav a {
  color: #6b5e7a;
  text-decoration: none;
  transition: color 0.4s ease;
}
.nav a:hover {
  color: #b8a9c9;
}
.nav .sep {
  color: #3a3345;
}
section {
  margin-bottom: 4rem;
}
h2 {
  font-size: 0.7rem;
  font-weight: 500;
  color: #6b5e7a;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
p {
  font-size: 0.82rem;
  color: #9a8dab;
  max-width: 520px;
}
p + .p {
  margin-top: 1rem;
}
.about-wrap {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.about-wrap .image-frame {
  background: none;
  border: none;
}
.image-frame {
  flex-shrink: 0;
  width: 90px;
  aspect-ratio: 1;
  background: rgba(168, 155, 181, 0.03);
  border: 1px solid rgba(168, 155, 181, 0.07);
  overflow: hidden;
  position: relative;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.6rem;
  color: rgba(168, 155, 181, 0.2);
  text-align: center;
  padding: 0.5rem;
  line-height: 1.3;
}
.gallery-grid {
  column-count: 2;
  column-gap: 0.6rem;
}
.gallery-grid .image-frame {
  break-inside: avoid;
  margin-bottom: 0.6rem;
  width: 100%;
}
.gallery-grid .image-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-grid .placeholder {
  width: 100%;
  height: auto;
  min-height: 100px;
}
.socials {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.socials a {
  color: #6b5e7a;
  text-decoration: none;
  font-size: 0.72rem;
  transition: color 0.4s ease;
  letter-spacing: 0.02em;
}
.socials a:hover {
  color: #d4c7e0;
}
.tools-list {
  display: flex;
  gap: 0.8rem 1.2rem;
  flex-wrap: wrap;
}
.tools-list a {
  color: #6b5e7a;
  text-decoration: none;
  font-size: 0.72rem;
  transition: color 0.4s ease;
  letter-spacing: 0.02em;
}
.tools-list a:hover {
  color: #d4c7e0;
}
cat-girl-counter#counter-badge {
  display: flex;
  align-items: center;
}
cat-girl-counter#counter-badge > div {
  display: flex;
  align-items: center;
  gap: 0;
}
cat-girl-counter#counter-badge img {
  width: 28.75px;
  height: 64px;
  display: block;
  image-rendering: pixelated;
}
#counter-box {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  left: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.4rem;
  border-radius: 3px;
  width: max-content;
  transform: scale(1.15);
  transform-origin: bottom right;
}
#iran-time {
  font-size: 0.7rem;
  color: #6b5e7a;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
}

.lyrics-wrapper {
  height: 4.5rem;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}
.lyrics-scroller {
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.lyric-line {
  font-size: 0.82rem;
  color: #6b5e7a;
  line-height: 1.5;
  transition: color 0.3s ease, opacity 0.3s ease, font-weight 0.3s ease;
  opacity: 0.4;
  margin-bottom: 0.4rem;
  text-wrap: balance;
}
.lyric-line.active {
  color: #d4c7e0;
  opacity: 1;
  font-weight: 400;
}

@media (max-width: 560px) {
  main {
    padding: 4rem 1.5rem;
  }
  header {
    margin-bottom: 3.5rem;
  }
  h1 {
    font-size: 1.15rem;
  }
  .about-wrap {
    flex-direction: column;
    gap: 1rem;
  }
  .image-frame {
    width: 70px;
  }
  .gallery-grid {
    column-count: 1;
    gap: 0.6rem;
  }
  section {
    margin-bottom: 3rem;
  }
}