:root {
  color-scheme: dark;
  --paper: #e9e8e0;
  --ink: #060606;
  --panel: rgba(13, 13, 13, .83);
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: Outfit, Arial, sans-serif;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 15%, rgba(0, 0, 0, .58) 100%);
  content: "";
}

.background-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050505 url("assets/badfon-blich-urahara-kiske-polosataya.jpg") center / cover no-repeat;
}

.background-scene::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .4), transparent 46%, rgba(0, 0, 0, .24)), linear-gradient(0deg, rgba(0, 0, 0, .42), transparent 58%);
  content: "";
}

.enter-gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(5px);
  cursor: pointer;
  transition: opacity .55s ease, visibility .55s ease;
}

.enter-gate.is-dismissed { visibility: hidden; opacity: 0; pointer-events: none; }

.enter-label {
  padding: 15px 21px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 0;
  color: #f4f4f0;
  background: rgba(8, 8, 8, .62);
  box-shadow: 0 0 28px rgba(255, 255, 255, .08);
  font: 500 12px/1 "DM Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease;
}

.enter-gate:hover .enter-label, .enter-gate:focus-visible .enter-label { background: rgba(255, 255, 255, .13); transform: translateY(-2px); }
.enter-gate:focus-visible { outline: none; }

.fog {
  position: absolute;
  width: 150vmax;
  height: 29vmax;
  opacity: .5;
  filter: blur(20px);
  background:
    radial-gradient(ellipse at 11% 70%, rgba(230, 235, 232, .42), transparent 21%),
    radial-gradient(ellipse at 35% 45%, rgba(218, 225, 222, .5), transparent 25%),
    radial-gradient(ellipse at 60% 66%, rgba(235, 238, 235, .39), transparent 23%),
    radial-gradient(ellipse at 82% 40%, rgba(205, 218, 214, .34), transparent 25%);
}

.fog-back { top: 11%; left: -78vmax; animation: fog-wave 19s ease-in-out infinite; }
.fog-front { right: -76vmax; bottom: -7vmax; opacity: .58; animation: fog-wave 25s ease-in-out infinite reverse; }

.page-shell {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  padding: 24px;
  place-items: center;
}

.profile-card {
  width: min(100%, 355px);
  padding: 34px 29px 31px;
  border: 1px solid rgba(233, 232, 224, .15);
  border-radius: 19px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
}

.avatar-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 19px;
}

.avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(233, 232, 224, .46);
  border-radius: 50%;
  background: #161616 url("assets/avatar.jpg?v=2") center / cover no-repeat;
}

.identity { text-align: center; }

.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

h1 {
  margin: 0;
  font-size: 33px;
  font-weight: 500;
  letter-spacing: -.055em;
}

.early-supporter {
  width: 18px;
  height: 18px;
  margin-left: 2px;
  object-fit: contain;
  transform: translateY(1px);
}

.links {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin-top: 27px;
}

.link {
  display: grid;
  width: 51px;
  height: 51px;
  place-items: center;
  border: 1px solid rgba(233, 232, 224, .17);
  border-radius: 12px;
  color: #d8d7d1;
  background: rgba(255, 255, 255, .035);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.link:hover, .link:focus-visible {
  border-color: rgba(233, 232, 224, .54);
  background: rgba(255, 255, 255, .1);
  outline: none;
  transform: translateY(-2px);
}

.link-icon { display: block; width: 28px; height: 28px; object-fit: contain; filter: invert(1); mix-blend-mode: screen; }

.visit-counter {
  position: fixed;
  bottom: 22px;
  left: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .92);
  font: 500 13px/1 "DM Mono", monospace;
  letter-spacing: .04em;
  text-shadow: 0 1px 8px #000;
}

.visit-counter svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.audio-control {
  position: fixed;
  top: 22px;
  left: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
}

.audio-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: #fff;
  background: rgba(7, 7, 7, .6);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.audio-toggle:hover, .audio-toggle:focus-visible { border-color: rgba(255, 255, 255, .7); background: rgba(30, 30, 30, .78); outline: none; }
.audio-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.mute-mark { display: none; }
.audio-toggle.is-muted .sound-wave { display: none; }
.audio-toggle.is-muted .mute-mark { display: block; }

.volume-panel {
  display: grid;
  width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  transition: width .24s ease, margin-left .24s ease, opacity .2s ease;
}

.audio-control:hover .volume-panel, .audio-control:focus-within .volume-panel { width: 94px; margin-left: 10px; opacity: 1; }

#volume-control {
  width: 94px;
  accent-color: #fff;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fog-wave {
  0%, 100% { transform: translate3d(-8vmax, 0, 0) scale(1); }
  50% { transform: translate3d(19vmax, -4vmax, 0) scale(1.09); }
}

@media (max-width: 420px) {
  .page-shell { padding: 16px; }
  .profile-card { padding: 29px 23px 27px; }
  .background-scene { background-position: 58% center; }
  .visit-counter { bottom: 18px; left: 18px; }
  .audio-control { top: 18px; left: 18px; }
}

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