:root {
  color-scheme: dark;
  --ink: #fff7ff;
  --muted: #e7b9ff;
  --purple: #9b2cff;
  --violet: #6514ff;
  --pink: #ff4fd8;
  --hot-pink: #ff149f;
  --cyan: #44f4ff;
  --glass: rgba(31, 7, 61, 0.58);
  --glass-strong: rgba(87, 18, 126, 0.36);
  --border: rgba(255, 148, 244, 0.42);
  --shadow: 0 0 26px rgba(155, 44, 255, 0.58), 0 0 70px rgba(255, 20, 159, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #08020f;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: 'Noto Sans JP', 'Outfit', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 79, 216, 0.30), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(68, 244, 255, 0.18), transparent 25%),
    radial-gradient(circle at 50% 78%, rgba(101, 20, 255, 0.35), transparent 38%),
    linear-gradient(145deg, #05000a 0%, #160520 40%, #090012 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.03) 0,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: screen;
  opacity: 0.25;
}

.profile-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px 16px;
  isolation: isolate;
}

.ambient-neon {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb,
.sparkle {
  position: absolute;
  display: block;
}

.orb {
  width: 210px;
  height: 210px;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.78;
  will-change: transform;
  animation: floaty 11s cubic-bezier(.45, 0, .55, 1) infinite;
}

.orb-one {
  top: 7%;
  left: -55px;
  background: radial-gradient(circle, rgba(255, 79, 216, 0.52), rgba(155, 44, 255, 0.03) 65%);
  animation-duration: 12s;
}

.orb-two {
  right: -70px;
  bottom: 12%;
  animation-delay: -3s;
  animation-duration: 14s;
  background: radial-gradient(circle, rgba(101, 20, 255, 0.60), rgba(68, 244, 255, 0.06) 68%);
}

.orb-three {
  width: 145px;
  height: 145px;
  left: 59%;
  top: 8%;
  animation-delay: -6s;
  animation-duration: 10s;
  background: radial-gradient(circle, rgba(68, 244, 255, 0.40), rgba(255, 79, 216, 0.05) 68%);
}

.orb-four {
  width: 120px;
  height: 120px;
  left: 12%;
  bottom: 18%;
  animation-delay: -8s;
  animation-duration: 13s;
  opacity: 0.6;
  background: radial-gradient(circle, rgba(255, 201, 247, 0.45), rgba(101, 20, 255, 0.04) 68%);
}

.sparkle {
  color: #fff;
  text-shadow: 0 0 8px #fff, 0 0 18px var(--pink), 0 0 34px var(--purple);
  will-change: transform, opacity;
  animation: twinkle 3s ease-in-out infinite, sparkleDrift 9s ease-in-out infinite;
}

.sparkle-one {
  top: 18%;
  right: 21%;
  font-size: 36px;
}

.sparkle-two {
  bottom: 22%;
  left: 20%;
  font-size: 30px;
  animation-delay: -0.75s, -2s;
}

.sparkle-three {
  top: 63%;
  right: 13%;
  font-size: 28px;
  color: #ffd4fb;
  animation-delay: -1.3s, -4s;
}

.sparkle-four {
  top: 38%;
  left: 8%;
  font-size: 22px;
  color: #b9f7ff;
  animation-delay: -2.1s, -6s;
}

.sparkle-five {
  bottom: 9%;
  right: 38%;
  font-size: 24px;
  color: #ffe0fb;
  animation-delay: -1.7s, -3s;
}

/* 角を斜めにカットした八角形クリップ（HUD風） */
.profile-shell {
  --notch: 22px;
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 16px 22px 24px;
  border-radius: 0;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.13), transparent 28%),
    linear-gradient(180deg, var(--glass), rgba(12, 2, 25, 0.80));
  box-shadow: var(--shadow), inset 0 0 38px rgba(255, 255, 255, 0.05);
  text-align: center;
  backdrop-filter: blur(20px);
  overflow: hidden;
  opacity: 0;
  clip-path: polygon(
    var(--notch) 0, calc(100% - var(--notch)) 0,
    100% var(--notch), 100% calc(100% - var(--notch)),
    calc(100% - var(--notch)) 100%, var(--notch) 100%,
    0 calc(100% - var(--notch)), 0 var(--notch)
  );
  animation: cardEnter 1s cubic-bezier(.2, .8, .25, 1) 2.7s forwards, cardFloat 8s ease-in-out 3.7s infinite;
}

/* 外側のネオン縁取り（同じ八角形） */
.profile-shell::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: conic-gradient(from 160deg, var(--pink), var(--purple), var(--cyan), var(--pink));
  filter: blur(16px);
  opacity: 0.45;
  clip-path: polygon(
    var(--notch) 0, calc(100% - var(--notch)) 0,
    100% var(--notch), 100% calc(100% - var(--notch)),
    calc(100% - var(--notch)) 100%, var(--notch) 100%,
    0 calc(100% - var(--notch)), 0 var(--notch)
  );
  animation: hueSpin 7s linear infinite;
}

/* 内側の細いライン枠（八角形の二重線） */
.profile-shell::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  clip-path: polygon(
    16px 0, calc(100% - 16px) 0,
    100% 16px, 100% calc(100% - 16px),
    calc(100% - 16px) 100%, 16px 100%,
    0 calc(100% - 16px), 0 16px
  );
}

/* ===== HUD top bar ===== */
.hud-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hud-left { display: inline-flex; align-items: center; gap: 7px; color: #ffd9fb; }

.hud-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blinkDot 1.2s steps(1) infinite;
}

.hud-code { text-shadow: 0 0 10px rgba(255, 79, 216, 0.8); }

.hud-right {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(68, 244, 255, 0.9);
}

.hud-wave { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }

.hud-wave i {
  display: block;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--pink));
  transform-origin: bottom;
  animation: waveBar 1s ease-in-out infinite;
}

.hud-wave i:nth-child(2) { animation-delay: 0.15s; }
.hud-wave i:nth-child(3) { animation-delay: 0.30s; }
.hud-wave i:nth-child(4) { animation-delay: 0.45s; }
.hud-wave i:nth-child(5) { animation-delay: 0.60s; }

/* ===== Hero ===== */
.hero-section {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 4px 0 18px;
  text-align: left;
}

.hero-name-wrap { display: grid; gap: 4px; }

.avatar-hex {
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(68, 244, 255, 0.45);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  animation: orbitSpin 12s linear infinite reverse;
}

/* ===== Stat chips ===== */
.stat-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 16px;
}

.stat-chip {
  display: grid;
  gap: 2px;
  padding: 9px 6px;
  border: 1px solid rgba(255, 148, 244, 0.30);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 12px var(--pink), 0 0 26px var(--purple);
}

.stat-chip-live {
  border-color: rgba(255, 80, 120, 0.45);
  background: linear-gradient(180deg, rgba(255, 45, 106, 0.16), rgba(255, 255, 255, 0.02));
}

.stat-chip-live .stat-num {
  color: #ffd2dd;
  text-shadow: 0 0 12px rgba(255, 60, 110, 0.95), 0 0 24px rgba(255, 20, 90, 0.6);
}

.stat-chip-live .stat-label {
  color: rgba(255, 200, 215, 0.85);
}

.stat-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 234, 255, 0.66);
}

/* ===== Bio ===== */
.bio-section { position: relative; z-index: 1; }

/* ===== Divider ===== */
.hud-divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.hud-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 148, 244, 0.6), transparent);
}

.hud-divider-mark {
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(68, 244, 255, 0.9);
  white-space: nowrap;
}

/* スキャンライン（シェル全体を走る） */
.card-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--pink) 80%, transparent);
  box-shadow: 0 0 12px rgba(68, 244, 255, 0.9);
  opacity: 0.6;
  animation: scanMove 5s linear 3.4s infinite;
}

.eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-self: start;
  align-items: center;
  gap: 9px;
  margin: 0 0 6px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 148, 244, 0.42);
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background: rgba(255, 79, 216, 0.11);
  color: #ffd9fb;
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 79, 216, 0.95);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blinkDot 1.2s steps(1) infinite;
}

.eyebrow-code {
  padding-left: 9px;
  margin-left: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--cyan);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-shadow: 0 0 10px rgba(68, 244, 255, 0.9);
}

/* LIVEバッジ（赤系の点滅） */
.live-badge {
  gap: 7px;
  border-color: rgba(255, 80, 120, 0.6);
  background: rgba(255, 40, 90, 0.16);
  color: #ffd2dd;
  text-shadow: 0 0 12px rgba(255, 60, 110, 0.95);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff2d6a;
  box-shadow: 0 0 10px #ff2d6a, 0 0 18px rgba(255, 45, 106, 0.8);
  animation: livePulse 1.3s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}

.avatar-frame {
  position: relative;
  display: grid;
  width: 118px;
  height: 118px;
  margin: 0;
  place-items: center;
  flex-shrink: 0;
  animation: avatarBob 5s ease-in-out infinite;
}

.avatar-halo {
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 79, 216, 0.45), transparent 62%);
  filter: blur(12px);
  animation: haloPulse 3.4s ease-in-out infinite;
}

.avatar-orbit {
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  pointer-events: none;
  animation: orbitSpin 6s linear infinite;
}

.avatar-orbit-2 {
  inset: -16px;
  animation: orbitSpin 9s linear infinite reverse;
}

.avatar-orbit-2 .avatar-orbit-dot {
  color: var(--pink);
  text-shadow: 0 0 8px #fff, 0 0 18px var(--pink);
}

.avatar-orbit-dot {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 0 8px #fff, 0 0 18px var(--cyan), 0 0 32px var(--pink);
  animation: twinkle 2s ease-in-out infinite;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: conic-gradient(var(--pink), var(--purple), var(--cyan), var(--pink));
  box-shadow: 0 0 26px rgba(255, 79, 216, 0.78), 0 0 52px rgba(101, 20, 255, 0.55);
  animation: hueSpin 5s linear infinite;
}

.avatar-inner {
  position: relative;
  display: grid;
  width: 98px;
  height: 98px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  overflow: hidden;
  background: #180021;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.avatar-badge {
  position: absolute;
  right: -6px;
  bottom: 4px;
  padding: 4px 7px;
  font-size: 0.58rem !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  background: linear-gradient(135deg, var(--hot-pink), var(--purple));
  box-shadow: 0 0 18px rgba(255, 20, 159, 0.85);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.profile-header,
.social-links,
.profile-footer {
  position: relative;
  z-index: 1;
}

.profile-name {
  margin: 0;
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-size: clamp(2.6rem, 13vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: #fff;
  text-shadow:
    0 0 7px #fff,
    0 0 17px var(--pink),
    0 0 36px var(--purple),
    0 0 62px rgba(68, 244, 255, 0.42);
}

.profile-id {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 15px rgba(231, 185, 255, 0.86);
}

.profile-copy {
  margin: 0 0 16px;
  color: rgba(255, 247, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
}

.social-links {
  display: grid;
  gap: 14px;
  margin: 0 auto;
}

.social-link {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 30px;
  align-items: center;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 148, 244, 0.36);
  border-radius: 0;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035));
  box-shadow: 0 0 18px rgba(101, 20, 255, 0.20), inset 0 0 20px rgba(255, 255, 255, 0.04);
  text-align: left;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  overflow: hidden;
}

/* リンク左端の縦インジケーターライン */
.social-link::after {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--pink));
  box-shadow: 0 0 10px rgba(68, 244, 255, 0.8);
  transform: scaleY(0.25);
  transform-origin: center;
  opacity: 0.6;
  transition: transform 280ms ease, opacity 280ms ease;
}

.social-link:hover::after,
.social-link:focus-visible::after {
  transform: scaleY(1);
  opacity: 1;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-115%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.23), transparent);
  transition: transform 560ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 24px rgba(255, 79, 216, 0.42), 0 0 44px rgba(101, 20, 255, 0.34);
  outline: none;
}

.social-link:hover::before,
.social-link:focus-visible::before {
  transform: translateX(115%);
}

.instagram-link {
  background:
    linear-gradient(135deg, rgba(255, 20, 159, 0.26), rgba(101, 20, 255, 0.15)),
    rgba(255, 255, 255, 0.06);
}

.tiktok-link {
  background:
    linear-gradient(135deg, rgba(68, 244, 255, 0.17), rgba(255, 20, 159, 0.19)),
    rgba(255, 255, 255, 0.06);
}

.link-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08), 0 0 18px rgba(255, 79, 216, 0.28);
  font-size: 1.45rem;
  transition: transform 320ms cubic-bezier(.2, 1.5, .3, 1);
}

.social-link:hover .link-icon,
.social-link:focus-visible .link-icon {
  transform: translateY(-3px) rotate(-8deg) scale(1.12);
}

.link-text {
  display: grid;
  gap: 3px;
}

.link-text strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.11rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.link-text small {
  color: rgba(255, 234, 255, 0.73);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.link-arrow {
  justify-self: end;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  transition: transform 280ms ease, color 280ms ease;
}

.social-link:hover .link-arrow,
.social-link:focus-visible .link-arrow {
  transform: translate(3px, -3px);
  color: #fff;
}

.profile-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  color: rgba(255, 216, 251, 0.80);
  font-family: 'Kaisei Decol', serif;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-shadow: 0 0 16px rgba(255, 79, 216, 0.70);
}

.footer-tick {
  width: 28px;
  height: 5px;
  opacity: 0.5;
  background-image: repeating-linear-gradient(90deg, rgba(255, 148, 244, 0.6) 0 1px, transparent 1px 6px);
}

@keyframes floaty {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  25% { transform: translate3d(20px, -26px, 0) scale(1.06); }
  50% { transform: translate3d(-8px, -42px, 0) scale(1.1); }
  75% { transform: translate3d(-22px, -16px, 0) scale(1.04); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.85) rotate(-10deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(10deg); }
}

@keyframes sparkleDrift {
  0% { translate: 0 0; }
  33% { translate: 16px -22px; }
  66% { translate: -14px -10px; }
  100% { translate: 0 0; }
}

@keyframes hueSpin {
  to { filter: hue-rotate(360deg); }
}

@media (max-width: 420px) {
  .profile-page {
    padding: 18px 12px;
  }

  .profile-shell {
    --notch: 18px;
    padding: 14px 16px 20px;
  }

  .profile-shell::after {
    inset: 7px;
  }

  .hero-section {
    gap: 12px;
  }

  .avatar-frame {
    width: 104px;
    height: 104px;
  }

  .avatar-inner {
    width: 86px;
    height: 86px;
  }

  .stat-num { font-size: 1rem; }

  .social-link {
    grid-template-columns: 46px 1fr 22px;
    min-height: 70px;
    padding: 11px 12px;
  }

  .link-icon {
    width: 42px;
    height: 42px;
  }
}

/* ============================================
   Splash — rebuilt for readability
   ============================================ */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  /* 落ち着いた暗いグラデ。文字とのコントラストを最優先 */
  background:
    radial-gradient(circle at 50% 42%, #1a0830 0%, #0c0218 48%, #050009 100%);
  animation: splashExit 3.2s cubic-bezier(.7, 0, .2, 1) forwards;
  overflow: hidden;
}

/* 周辺を暗く落とすビネット（中央の文字を浮き立たせる） */
.splash-vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, transparent 38%, rgba(2, 0, 6, 0.75) 100%);
}

.splash-stage {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 14px;
}

/* 文字の真後ろにある柔らかな光（控えめ・文字に被らない明るさ） */
.splash-halo {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 260px;
  height: 260px;
  z-index: -1;
  transform: translate(-50%, -50%) scale(0.6);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(176, 84, 255, 0.40), rgba(255, 79, 216, 0.12) 45%, transparent 70%);
  filter: blur(18px);
  opacity: 0;
  animation: haloIn 1.2s ease 0.2s forwards, haloBreath 2.6s ease-in-out 1.4s infinite;
}

/* ロゴ「Hina」 */
.splash-logo {
  position: relative;
  display: flex;
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(4.6rem, 22vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
}

.splash-letter {
  display: inline-block;
  color: #ffffff;
  /* 黒の縁取りで背景に関係なく必ず読める */
  text-shadow:
    0 0 2px #000,
    0 2px 4px rgba(0, 0, 0, 0.7),
    0 0 18px rgba(255, 120, 230, 0.9),
    0 0 40px rgba(155, 60, 255, 0.7);
  opacity: 0;
  transform: translateY(28px) scale(0.85);
  animation: letterRise 0.7s cubic-bezier(.2, .9, .25, 1) forwards;
  animation-delay: calc(0.25s + var(--i) * 0.12s);
}

/* 名前の下のネオンライン（左から伸びる） */
.splash-underline {
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--purple));
  box-shadow: 0 0 12px rgba(255, 79, 216, 0.9);
  animation: underlineGrow 0.8s cubic-bezier(.3, .8, .25, 1) 0.85s forwards;
}

.splash-kicker {
  margin: 0;
  display: inline-flex;
  gap: 2px;
  color: #ffe5fb;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 79, 216, 0.85), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.splash-kicker span {
  display: inline-block;
  opacity: 0;
  animation: fadeSlide 0.5s ease forwards;
}

.splash-kicker span:nth-child(1) { animation-delay: 1.00s; }
.splash-kicker span:nth-child(2) { animation-delay: 1.06s; }
.splash-kicker span:nth-child(3) { animation-delay: 1.12s; }
.splash-kicker span:nth-child(4) { animation-delay: 1.18s; }
.splash-kicker span:nth-child(5) { animation-delay: 1.24s; }
.splash-kicker span:nth-child(6) { animation-delay: 1.30s; }
.splash-kicker span:nth-child(7) { animation-delay: 1.36s; }

.kawaii-floaters {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.line-icon {
  position: absolute;
  width: clamp(46px, 13vw, 80px);
  height: auto;
  color: rgba(255, 229, 252, 0.78);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 16px rgba(255, 79, 216, 0.62));
  opacity: 0.8;
  will-change: transform;
  animation-duration: 13s;
  animation-timing-function: cubic-bezier(.45, 0, .55, 1);
  animation-iteration-count: infinite;
}

.line-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: lineDraw 3.2s ease-in-out infinite alternate;
}

.line-heart {
  top: 9%;
  left: 7%;
  color: rgba(255, 122, 226, 0.82);
  animation-name: driftCute;
}

.line-heart2 {
  top: 30%;
  right: 4%;
  width: clamp(34px, 9vw, 52px);
  color: rgba(255, 160, 235, 0.8);
  animation-name: driftSway;
  animation-delay: -3s;
}

.line-heart3 {
  bottom: 6%;
  left: 32%;
  width: clamp(30px, 8vw, 46px);
  color: rgba(255, 190, 240, 0.78);
  animation-name: driftPop;
  animation-delay: -5s;
}

.line-ribbon {
  top: 64%;
  left: 5%;
  color: rgba(255, 201, 247, 0.84);
  animation-name: driftSway;
  animation-delay: -2s;
}

.line-star {
  top: 13%;
  right: 8%;
  color: rgba(113, 247, 255, 0.78);
  animation-name: driftSpin;
  animation-delay: -4s;
}

.line-star2 {
  bottom: 28%;
  right: 9%;
  width: clamp(28px, 7vw, 44px);
  color: rgba(150, 250, 255, 0.78);
  animation-name: driftSpin;
  animation-delay: -7s;
}

.line-butterfly {
  right: 3%;
  bottom: 14%;
  color: rgba(214, 181, 255, 0.84);
  animation-name: driftCute;
  animation-delay: -6s;
}

.line-sparkle4 {
  top: 42%;
  left: 3%;
  width: clamp(34px, 9vw, 54px);
  color: rgba(120, 230, 255, 0.82);
  animation-name: driftPop;
  animation-delay: -8s;
}

.line-sparkle5 {
  top: 6%;
  left: 44%;
  width: clamp(26px, 7vw, 40px);
  color: rgba(255, 224, 250, 0.8);
  animation-name: driftPop;
  animation-delay: -1.5s;
}

.line-moon {
  top: 48%;
  right: 5%;
  width: clamp(38px, 10vw, 60px);
  color: rgba(255, 224, 250, 0.82);
  animation-name: driftSway;
  animation-delay: -10s;
}

.line-note {
  top: 78%;
  left: 14%;
  width: clamp(30px, 8vw, 48px);
  color: rgba(190, 200, 255, 0.8);
  animation-name: driftSway;
  animation-delay: -4.5s;
}

.line-snow {
  top: 22%;
  left: 22%;
  width: clamp(30px, 8vw, 46px);
  color: rgba(170, 240, 255, 0.74);
  animation-name: driftSpin;
  animation-delay: -9s;
}

.line-diamond {
  bottom: 8%;
  right: 30%;
  width: clamp(28px, 7vw, 44px);
  color: rgba(120, 235, 255, 0.8);
  animation-name: driftPop;
  animation-delay: -3.5s;
}

.line-cloud {
  top: 60%;
  left: 26%;
  width: clamp(40px, 11vw, 64px);
  color: rgba(225, 195, 255, 0.72);
  animation-name: driftSway;
  animation-delay: -6.5s;
}

.line-flower {
  top: 36%;
  left: 16%;
  width: clamp(30px, 8vw, 48px);
  color: rgba(255, 200, 245, 0.8);
  animation-name: driftSpin;
  animation-delay: -2.5s;
}

.line-chick {
  top: 52%;
  left: 10%;
  width: clamp(40px, 11vw, 62px);
  color: rgba(255, 232, 140, 0.92);
  filter: drop-shadow(0 0 6px rgba(255, 248, 200, 0.8)) drop-shadow(0 0 16px rgba(255, 214, 90, 0.7));
  animation-name: driftCute;
  animation-delay: -5.5s;
}

.line-chick2 {
  top: 18%;
  right: 14%;
  width: clamp(34px, 9vw, 52px);
  color: rgba(255, 226, 120, 0.9);
  filter: drop-shadow(0 0 6px rgba(255, 248, 200, 0.8)) drop-shadow(0 0 16px rgba(255, 214, 90, 0.7));
  animation-name: driftSway;
  animation-delay: -8.5s;
}

.avatar-crown {
  position: absolute;
  top: -4px;
  left: 20px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #ffd1f8 45%, #ff4fd8);
  box-shadow: 0 0 18px rgba(255, 79, 216, 0.9);
  color: #8710d4;
  font-size: 1.05rem;
  animation: crownWiggle 1.8s ease-in-out infinite;
}

.tap-target {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms cubic-bezier(.2, .9, .3, 1);
}

.tap-target.is-pressed {
  transform: scale(0.95);
}

.tap-ring {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  box-shadow: 0 0 16px rgba(255, 79, 216, 0.95), 0 0 34px rgba(101, 20, 255, 0.65);
  animation: tapRing 720ms cubic-bezier(.2, .7, .3, 1) forwards;
}

.tap-burst {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  color: #fff;
  font-family: 'Kaisei Decol', serif;
  font-size: 1.55rem;
  font-weight: 700;
  text-shadow: 0 0 8px #fff, 0 0 20px var(--pink), 0 0 40px var(--purple);
  animation: tapBurst 880ms cubic-bezier(.2, .95, .25, 1) forwards;
}

/* 放射状パーティクル */
.tap-particle {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  color: #fff;
  font-size: 0.95rem;
  text-shadow: 0 0 6px #fff, 0 0 16px var(--pink), 0 0 28px var(--cyan);
  transform: translate(-50%, -50%);
  animation: tapParticle 760ms cubic-bezier(.15, .7, .25, 1) forwards;
}

/* 中心のフラッシュ */
.tap-flash {
  position: fixed;
  z-index: 59;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 79, 216, 0.6) 45%, transparent 70%);
  animation: tapFlash 500ms ease-out forwards;
}

@keyframes splashExit {
  0%, 82% { opacity: 1; visibility: visible; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; visibility: hidden; transform: scale(1.1); filter: blur(10px); }
}

/* 文字が下からせり上がって登場（回転やブラーは最小限で読みやすく） */
@keyframes letterRise {
  0% { opacity: 0; transform: translateY(28px) scale(0.85); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 背後の柔らかな光 */
@keyframes haloIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes haloBreath {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

/* 下線が伸びる */
@keyframes underlineGrow {
  0% { width: 0; opacity: 0; }
  100% { width: clamp(150px, 48vw, 240px); opacity: 1; }
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes charmBounce {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(8deg); }
}

@keyframes driftCute {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-8deg) scale(1); }
  25% { transform: translate3d(22px, -28px, 0) rotate(8deg) scale(1.08); }
  50% { transform: translate3d(-12px, -52px, 0) rotate(-5deg) scale(0.94); }
  75% { transform: translate3d(16px, -22px, 0) rotate(12deg) scale(1.05); }
}

/* 左右に揺れながら上昇 */
@keyframes driftSway {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-12deg); }
  33% { transform: translate3d(-26px, -30px, 0) rotate(10deg); }
  66% { transform: translate3d(24px, -54px, 0) rotate(-6deg); }
}

/* くるくる回転しながら漂う */
@keyframes driftSpin {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(14px, -40px, 0) rotate(180deg) scale(1.1); }
  100% { transform: translate3d(0, 0, 0) rotate(360deg) scale(1); }
}

/* ふわっと拡大縮小しながら浮遊 */
@keyframes driftPop {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.85) rotate(-6deg); opacity: 0.55; }
  50% { transform: translate3d(-10px, -38px, 0) scale(1.18) rotate(10deg); opacity: 0.95; }
}

@keyframes lineDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes crownWiggle {
  0%, 100% { transform: rotate(-10deg) translateY(0); }
  50% { transform: rotate(10deg) translateY(-4px); }
}

@keyframes avatarBob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes haloPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes cardEnter {
  0% { opacity: 0; transform: translateY(40px) scale(0.92); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes cornerFade {
  to { opacity: 1; }
}

@keyframes cornerPulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(68, 244, 255, 0.7)); opacity: 0.85; }
  50% { filter: drop-shadow(0 0 12px rgba(68, 244, 255, 1)); opacity: 1; }
}

@keyframes scanMove {
  0% { top: 0; opacity: 0; }
  8% { opacity: 0.9; }
  92% { opacity: 0.9; }
  100% { top: 100%; opacity: 0; }
}

@keyframes tickShift {
  to { background-position: 90px 0; }
}

@keyframes blinkDot {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.15; }
}

@keyframes waveBar {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

@keyframes tapRing {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  to { transform: translate(-50%, -50%) scale(9); opacity: 0; }
}

@keyframes tapBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(-16deg); }
  18% { opacity: 1; transform: translate(-50%, -60%) scale(1.3) rotate(6deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--burst-x, 0px)), calc(-50% - 96px)) scale(1.7) rotate(20deg); }
}

@keyframes tapParticle {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(0deg); }
  15% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px))) scale(1.1) rotate(var(--rot, 0deg));
  }
}

@keyframes tapFlash {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(5); }
}

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

  .profile-shell,
  .splash-letter,
  .splash-kicker span,
  .splash-underline {
    opacity: 1 !important;
  }

  .splash-underline {
    width: clamp(150px, 48vw, 240px) !important;
  }

  .splash-screen {
    animation: splashExit 0.001ms 2.2s forwards !important;
  }
}
