:root {
  --night: #070718;
  --midnight: #10102f;
  --violet: #6f5bd3;
  --lavender: #c6bfff;
  --moon: #ffd978;
  --moon-light: #fff6cf;
  --white: #f8f7ff;
  --muted: #aaa7c8;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  font-family: "Zen Kaku Gothic New", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(81, 63, 164, 0.4), transparent 40%),
    linear-gradient(160deg, #080817 0%, #0c0c25 48%, #060614 100%);
}

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

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.aurora {
  position: fixed;
  z-index: 0;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.14;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}

.aurora--one {
  top: 10%;
  left: -22rem;
  background: #765de0;
}

.aurora--two {
  right: -25rem;
  bottom: 2%;
  background: #d39c42;
  animation-delay: -7s;
}

.shooting-star {
  position: fixed;
  z-index: 0;
  top: 16%;
  left: -20%;
  width: 120px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  transform: rotate(-24deg);
  background: linear-gradient(90deg, transparent, #fff);
  box-shadow: 0 0 8px #fff;
  animation: shoot 9s 2.5s ease-in infinite;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 36px 18px;
}

.profile-card {
  position: relative;
  width: min(100%, 470px);
  overflow: hidden;
  padding: 28px 24px 22px;
  border: 1px solid rgba(255, 238, 181, 0.2);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(30, 29, 68, 0.78), rgba(12, 12, 35, 0.88)),
    rgba(9, 9, 29, 0.76);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 70px rgba(111, 91, 211, 0.1);
  backdrop-filter: blur(22px);
}

.profile-card::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 27%, transparent 73%, rgba(255, 220, 120, 0.04));
  content: "";
  pointer-events: none;
}

.doodle {
  position: absolute;
  z-index: 0;
  top: 31%;
  right: -245px;
  width: 470px;
  height: 625px;
  opacity: 0.06;
  background: url("./assets/desk-doodle.png") right center / contain no-repeat;
  pointer-events: none;
  transform: rotate(5deg);
}

.hero {
  position: relative;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  color: rgba(255, 235, 167, 0.72);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.36em;
}

.eyebrow__line {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 221, 120, 0.7));
}

.eyebrow__line:last-child {
  transform: rotate(180deg);
}

.portrait-wrap {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto 14px;
}

.portrait-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: rgba(255, 192, 55, 0.62);
  filter: blur(38px);
  animation: breathe 4s ease-in-out infinite;
}

.portrait {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 228, 143, 0.34);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85) contrast(1.06);
  box-shadow:
    0 0 0 5px rgba(255, 236, 177, 0.04),
    0 0 35px rgba(255, 189, 48, 0.22);
}

.orbit {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 226, 137, 0.32);
  border-radius: 50%;
  pointer-events: none;
}

.orbit::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--moon-light);
  box-shadow: 0 0 9px var(--moon);
  content: "";
}

.orbit--one {
  inset: -8px 17px;
  transform: rotate(32deg);
  animation: orbit-one 12s linear infinite;
}

.orbit--one::after {
  top: 13px;
  left: 28px;
}

.orbit--two {
  inset: 11px -9px;
  transform: rotate(-48deg);
  opacity: 0.5;
  animation: orbit-two 16s linear infinite;
}

.orbit--two::after {
  right: 18px;
  bottom: 30px;
  width: 3px;
  height: 3px;
}

.kana {
  margin: 0 0 -5px;
  color: var(--moon);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
}

h1 {
  margin: 0;
  font-family: "Kiwi Maru", serif;
  font-size: clamp(2.25rem, 10vw, 3.15rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  text-shadow: 0 0 25px rgba(211, 201, 255, 0.17);
}

.alias {
  margin: 2px 0 0;
  color: var(--lavender);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
}

.alias span {
  color: var(--muted);
  font-size: 0.72rem;
}

.favorites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}

.favorites span {
  padding: 6px 10px;
  border: 1px solid rgba(198, 191, 255, 0.14);
  border-radius: 999px;
  color: #dcd8ff;
  background: rgba(128, 110, 209, 0.09);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 25px 0 20px;
}

.divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 219, 112, 0.24));
}

.divider span:last-child {
  transform: rotate(180deg);
}

.divider i {
  color: var(--moon);
  font-size: 0.65rem;
  font-style: normal;
  text-shadow: 0 0 10px var(--moon);
}

.about {
  position: relative;
  text-align: center;
}

.section-label {
  margin: 0 0 9px;
  color: rgba(181, 171, 235, 0.72);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
}

.greeting {
  margin: 0;
  color: #dedced;
  font-size: 0.9rem;
  line-height: 1.95;
}

.greeting strong {
  color: var(--moon-light);
  font-weight: 700;
}

.laugh {
  color: var(--lavender);
}

.taste-list {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.taste-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.taste-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--moon);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.taste-icon {
  display: grid;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255, 218, 112, 0.2);
  border-radius: 50%;
  place-items: center;
  font-size: 0.7rem;
  background: rgba(255, 211, 91, 0.06);
}

.taste-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.taste-items span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #dbd8ef;
  background: rgba(132, 118, 201, 0.1);
  font-size: 0.68rem;
  white-space: nowrap;
}

.taste-row--oshi .taste-heading {
  color: var(--lavender);
}

.taste-row--oshi .taste-icon {
  border-color: rgba(198, 191, 255, 0.2);
  background: rgba(147, 128, 230, 0.08);
}

.taste-row--unlike .taste-heading {
  color: #9793b5;
}

.taste-row--unlike .taste-icon {
  border-color: rgba(166, 161, 194, 0.16);
  background: rgba(166, 161, 194, 0.05);
}

.socials {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 23px;
}

.social-link {
  display: grid;
  grid-template-columns: 43px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 9px 15px 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(255, 222, 124, 0.33);
  background: rgba(255, 255, 255, 0.075);
  outline: none;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 9px 28px rgba(0, 0, 0, 0.19);
}

.social-icon {
  display: grid;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  place-items: center;
  background: rgba(255, 255, 255, 0.055);
}

.social-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.social-link--x .social-icon {
  color: #fafafa;
}

.social-link--discord .social-icon {
  color: #a9a5ff;
  background: rgba(88, 101, 242, 0.12);
}

.social-link--instagram .social-icon {
  color: #ffd28e;
  background: linear-gradient(145deg, rgba(217, 73, 125, 0.1), rgba(246, 180, 62, 0.1));
}

.social-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 12px;
}

.social-text small {
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.social-text b {
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.arrow,
.copy-label {
  color: rgba(255, 229, 150, 0.64);
  font-size: 0.9rem;
}

.copy-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.visitor-counter {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 13px 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 222, 126, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 50%, rgba(255, 210, 83, 0.1), transparent 28%),
    rgba(255, 255, 255, 0.032);
}

.visitor-counter::after {
  position: absolute;
  top: -22px;
  right: -18px;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255, 227, 145, 0.09);
  border-radius: 50%;
  content: "";
}

.counter-moon {
  color: var(--moon);
  font-family: serif;
  font-size: 1.65rem;
  filter: drop-shadow(0 0 9px rgba(255, 211, 91, 0.44));
  transform: rotate(-12deg);
}

.counter-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.counter-copy > span {
  color: #aaa7c8;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
}

.counter-copy strong {
  color: var(--moon-light);
  font-family: "Kiwi Maru", serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 218, 106, 0.18);
}

.counter-copy small {
  color: #aaa7c8;
  font-size: 0.62rem;
  font-weight: 400;
}

.counter-sparkle {
  position: relative;
  z-index: 1;
  color: rgba(255, 222, 121, 0.5);
  font-size: 0.55rem;
}

footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
  color: #777493;
  font-family: "Kiwi Maru", serif;
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-align: center;
}

footer p {
  margin: 0;
}

.footer-star {
  color: rgba(255, 221, 116, 0.42);
  font-size: 0.45rem;
}

.toast {
  position: fixed;
  z-index: 10;
  bottom: 24px;
  left: 50%;
  padding: 11px 18px;
  border: 1px solid rgba(255, 220, 116, 0.26);
  border-radius: 999px;
  opacity: 0;
  color: var(--moon-light);
  background: rgba(20, 19, 49, 0.94);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  font-size: 0.76rem;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: 240ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes breathe {
  50% { opacity: 0.68; transform: scale(1.14); }
}

@keyframes orbit-one {
  to { transform: rotate(392deg); }
}

@keyframes orbit-two {
  to { transform: rotate(-408deg); }
}

@keyframes drift {
  to { transform: translate(30px, -25px) scale(1.1); }
}

@keyframes shoot {
  0%, 72% { opacity: 0; transform: translate(0, 0) rotate(-24deg); }
  74% { opacity: 1; }
  82%, 100% { opacity: 0; transform: translate(140vw, 55vh) rotate(-24deg); }
}

@media (max-width: 420px) {
  .page-shell {
    padding: 0;
  }

  .profile-card {
    min-height: 100vh;
    padding: max(24px, env(safe-area-inset-top)) 19px max(20px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }

  .portrait-wrap {
    width: 170px;
    height: 170px;
  }

  .desktop-break {
    display: none;
  }

  .doodle {
    top: 35%;
    right: -285px;
  }

  .taste-row {
    grid-template-columns: 76px 1fr;
    padding-inline: 10px;
  }

  .counter-copy > span {
    max-width: 125px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
