:root {
  --bg: #091321;
  --surface: rgba(20, 35, 56, 0.72);
  --surface-strong: rgba(24, 42, 67, 0.93);
  --text: #f7f9ff;
  --muted: #b0bdd1;
  --accent: #ff987c;
  --accent-2: #75e2cb;
  --line: rgba(213, 229, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  --nav-bg: rgba(9, 19, 33, 0.74);
}
:root.light {
  --bg: #f2f5f3;
  --surface: rgba(255, 255, 255, 0.72);
  --text: #142031;
  --muted: #5c6878;
  --line: rgba(20, 32, 49, 0.13);
  --shadow: 0 20px 55px rgba(36, 55, 72, 0.12);
  --surface-strong: rgba(255, 255, 255, 0.93);
  --nav-bg: rgba(242, 245, 243, 0.78);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 90% -10%, rgba(72, 136, 196, 0.32) 0, transparent 34%),
    radial-gradient(circle at 0 38%, rgba(117, 226, 203, 0.1) 0, transparent 25%),
    linear-gradient(135deg, var(--bg), #10223b);
  background-attachment: fixed;
  color: var(--text);
  font:
    16px/1.6 "DM Sans",
    sans-serif;
}
.background-details {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(202, 225, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202, 225, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}
.bg-orb {
  position: absolute;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.2;
  animation: drift 16s ease-in-out infinite alternate;
}
.bg-orb-one {
  top: 14%;
  left: -180px;
  background: #4a8ac8;
}
.bg-orb-two {
  right: -120px;
  bottom: 5%;
  width: 280px;
  background: var(--accent-2);
  animation-delay: -7s;
}
@keyframes drift {
  to {
    transform: translate(55px, -30px) scale(1.12);
  }
}
main,
footer {
  position: relative;
  z-index: 1;
}
:root.light body {
  background:
    radial-gradient(circle at 90% 0, #d8e6ff 0, transparent 34%),
    linear-gradient(135deg, var(--bg), #e8eeeb);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.1;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 24px;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
}
.nav-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font: 700 1.25rem "Space Grotesk";
  letter-spacing: 0.04em;
}
.logo span,
.eyebrow {
  color: var(--accent);
}
:root.light .bg-grid {
  background-image:
    linear-gradient(rgba(28, 58, 83, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 58, 83, 0.055) 1px, transparent 1px);
}
.logo span {
  text-shadow: 0 0 18px var(--accent);
}
.links {
  display: flex;
  gap: 25px;
  align-items: center;
}
.links a {
  color: var(--muted);
  font-size: 0.9rem;
}
.links a:hover {
  color: var(--text);
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 4px;
}
button,
.button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--accent);
  color: #191b28;
  font: 700 0.9rem "DM Sans";
  cursor: pointer;
  transition: 0.25s;
  display: inline-block;
}
.button:hover,
button:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 25px rgba(255, 131, 100, 0.28);
}
.theme {
  padding: 8px 11px;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
section {
  padding: 100px 0;
}
.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(117, 226, 203, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(117, 226, 203, 0.04), 0 0 70px rgba(117, 226, 203, 0.18);
  pointer-events: none;
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  max-width: 760px;
  margin: 15px 0;
}
.hero h1 em {
  color: var(--accent-2);
  font-style: normal;
  text-shadow: 0 10px 32px rgba(117, 226, 203, 0.28);
}
.lead {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.12rem;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}
.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.profile-wrap {
  justify-self: end;
  text-align: center;
  position: relative;
  z-index: 1;
}
.profile-frame {
  position: relative;
  width: 260px;
  height: 260px;
  padding: 8px;
  border: 1px solid var(--accent-2);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.profile-frame:hover {
  transform: rotate(2deg) translateY(-6px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}
.profile-img,
.photo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #172b46;
}
.photo-fallback {
  display: grid;
  place-items: center;
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
}
.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 8px 0;
}
.section-heading p {
  max-width: 400px;
  color: var(--muted);
  margin: 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.about-copy {
  font-size: 1.08rem;
  color: var(--muted);
}
.hobby,
.facts {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow);
  border-radius: 18px;
}
.facts {
  padding: 25px;
}
.fact {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.fact:last-child {
  border: 0;
}
.fact b {
  display: block;
  color: var(--accent-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hobbies {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.hobby {
  flex: 1 1 180px;
  max-width: 220px;
  padding: 24px 15px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.hobby::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), transparent 38%);
  pointer-events: none;
}
.hobby:hover {
  transform: translateY(-8px);
  border-color: var(--accent-2);
  box-shadow: 0 0 25px rgba(98, 216, 194, 0.18);
}
.hobby .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 13px;
  filter: drop-shadow(0 8px 11px rgba(0, 0, 0, 0.22));
}
.hobby-play {
  width: 100%;
  padding: 0;
  background: transparent;
  color: var(--text);
}
.hobby-play:hover {
  box-shadow: none;
  transform: none;
}
.play-label {
  display: block;
  color: var(--accent-2);
  font-size: 0.72rem;
}
.hobby-media {
  display: none;
}
.hobby h3 {
  font-size: 1rem;
  margin: 0;
}
footer {
  padding: 30px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: 0.7s;
}
.reveal.show {
  opacity: 1;
  transform: none;
}
@media (max-width: 760px) {
  .links a {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
    padding-top: 55px;
  }
  .hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }
  .lead {
    margin: auto;
  }
  .actions {
    justify-content: center;
  }
  .profile-wrap {
    justify-self: center;
  }
  .profile-frame {
    width: 190px;
    height: 190px;
  }
  .hero::after {
    right: -45px;
    bottom: 3%;
    width: 120px;
    height: 120px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .section-heading {
    display: block;
  }
  .section-heading p {
    margin-top: 15px;
  }
  section {
    padding: 75px 0;
  }
}
.modal {
  display: flex;
  position: fixed;
  inset: 0;
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.modal[hidden] {
  display: none;
}
.modal-content {
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.modal-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-unmute {
  padding: 8px 11px;
  font-size: 0.78rem;
}
.modal-close {
  min-width: 40px;
  padding: 4px 10px;
  font-size: 1.6rem;
  line-height: 1;
}
.modal-video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 180px);
  border-radius: 10px;
  background: #000;
}
.modal-message {
  min-height: 1.6em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.music-modal .modal-content {
  width: min(720px, 100%);
}
.music-player {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 152, 124, 0.14), rgba(117, 226, 203, 0.1));
}
.music-art {
  display: grid;
  width: 120px;
  aspect-ratio: 1;
  place-items: center;
  border: 8px solid rgba(9, 19, 33, 0.5);
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), #425f9b, var(--accent));
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 14px 30px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 2.3rem;
  animation: spin-record 10s linear infinite paused;
}
.music-modal.is-playing .music-art {
  animation-play-state: running;
}
@keyframes spin-record {
  to {
    transform: rotate(360deg);
  }
}
.music-current p {
  margin-bottom: 3px;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.music-current h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.music-current audio {
  width: 100%;
  height: 34px;
}
.playlist-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.playlist-controls button {
  min-width: 42px;
  padding: 7px 12px;
}
.playlist-controls button:first-child,
.playlist-controls button:last-child {
  font-size: 1.4rem;
  line-height: 1;
}
.playlist {
  display: grid;
  gap: 7px;
  max-height: 270px;
  margin: 18px 0 0;
  padding: 0 4px 0 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: var(--accent-2) transparent;
}
.playlist-track {
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
}
.playlist-track:hover,
.playlist-track.is-active {
  transform: none;
  border-color: rgba(117, 226, 203, 0.55);
  background: rgba(117, 226, 203, 0.12);
  box-shadow: none;
}
.playlist-track span,
.playlist-track small {
  color: var(--muted);
  font-size: 0.72rem;
}
.playlist-track strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}
@media (max-width: 500px) {
  .music-player {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .music-art {
    width: 92px;
    margin: auto;
  }
  .playlist-track {
    grid-template-columns: 27px minmax(0, 1fr);
  }
  .playlist-track small {
    display: none;
  }
}
body.modal-open {
  overflow: hidden;
}
.anime-modal .modal-content {
  width: min(820px, 100%);
}
.anime-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 12px 0;
  min-height: 60px;
}
.anime-preview-placeholder {
  width: 48px;
  height: 64px;
  border-radius: 6px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  opacity: 0.5;
}
.anime-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px;
  scrollbar-color: var(--accent-2) transparent;
}
.anime-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  text-align: center;
}
.anime-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: 0 8px 20px rgba(117, 226, 203, 0.15);
}
.anime-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #172b46;
}
.anime-card-fallback {
  width: 100%;
  aspect-ratio: 3/4;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,152,124,0.15), rgba(117,226,203,0.1));
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 10px;
}
.anime-card-title {
  display: block;
  padding: 8px 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 500px) {
  .anime-gallery {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
  }
}
@media (pointer: fine) {
  body,
  a,
  button {
    cursor: none;
  }
  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
  }
  .cursor-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-2);
    box-shadow: 0 0 14px var(--accent-2);
  }
  .cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(117, 226, 203, 0.8);
  }
  .cursor-dot.is-visible,
  .cursor-ring.is-visible {
    opacity: 1;
  }
  .cursor-ring.is-hovering {
    width: 48px;
    height: 48px;
    border-color: var(--accent);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
