*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;
}

body {
  background-color: #fff0f5;
  font-family: "Zen Maru Gothic", sans-serif;
  color: #555;
}

.page {
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(135deg, #fff0f5 0%, #f3e5f5 30%, #e8f5e9 60%, #fff9c4 100%);
}

.sparkle-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle-item {
  position: absolute;
  animation: twinkle 2s ease-in-out infinite;
}

.floater {
  position: fixed;
  pointer-events: none;
}

.floater-1 {
  top: 4rem;
  left: 1rem;
  font-size: 1.5rem;
  opacity: 0.7;
  animation: float 3s ease-in-out infinite;
}

.floater-2 {
  top: 8rem;
  right: 1.5rem;
  font-size: 1.25rem;
  opacity: 0.6;
  animation: float2 2.5s ease-in-out infinite;
}

.floater-3 {
  bottom: 6rem;
  left: 2rem;
  font-size: 1.5rem;
  opacity: 0.7;
  animation: float2 3.5s ease-in-out infinite 0.5s;
}

.floater-4 {
  bottom: 4rem;
  right: 1rem;
  font-size: 1.25rem;
  opacity: 0.6;
  animation: float 3s ease-in-out infinite 1s;
}

.container {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  z-index: 10;
}

.header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ribbon {
  display: inline-block;
  padding: 0.5rem 2rem;
  margin-bottom: 0.75rem;
  border-radius: 9999px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ff69b4, #c9b8f5, #ff69b4);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

.title-wrap {
  position: relative;
  display: inline-block;
}

.title {
  margin: 0;
  font-family: "Yomogi", cursive;
  font-size: 2.25rem;
  font-weight: 900;
  color: #ff69b4;
  letter-spacing: 0.05em;
  text-shadow: 3px 3px 0 #c9b8f5, 5px 5px 0 rgba(255, 105, 180, 0.2);
}

.title-sparkle {
  position: absolute;
  pointer-events: none;
}

.title-sparkle-tr {
  top: -0.75rem;
  right: -1rem;
}

.title-sparkle-bl {
  bottom: -0.5rem;
  left: -1rem;
}

.subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  color: #f472b6;
  font-size: 0.875rem;
}

.subtitle span:nth-child(2) {
  font-family: "Yomogi", cursive;
}

.profile-frame {
  padding: 4px;
  margin-bottom: 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #ff69b4, #c9b8f5, #b8f5e0, #fff176, #ff69b4);
  background-size: 300% 300%;
  animation: shimmer 4s linear infinite;
  box-shadow: 0 8px 32px rgba(255, 105, 180, 0.3);
}

.profile-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.25rem;
}

.identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 4px solid #ff69b4;
  box-shadow: 0 0 0 3px #c9b8f5, 0 4px 16px rgba(255, 105, 180, 0.3);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-star {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
}

.avatar-heart {
  position: absolute;
  bottom: -0.5rem;
  left: -0.5rem;
  font-size: 1.125rem;
  display: inline-block;
}

.identity-text {
  flex: 1;
  min-width: 0;
}

.nickname-label {
  display: inline-block;
  font-family: "Yomogi", cursive;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: #fff0f5;
  color: #ff69b4;
}

.nickname {
  margin: 0;
  font-family: "Yomogi", cursive;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ff1493;
  text-shadow: 2px 2px 0 #f8c8dc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: #f3e5f5;
  color: #9c27b0;
}

.tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: #fff0f5;
}

.tab {
  flex: 1;
  border: 0;
  padding: 0.5rem 0.15rem;
  border-radius: 0.75rem;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff69b4;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ff69b4, #c9b8f5);
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.4);
}

.panel {
  display: none;
}

.panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#panel-favorites.is-active {
  gap: 0.75rem;
}

.item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 1rem;
  padding: 0.625rem 0.75rem;
  border: 2px dashed;
}

.item-even {
  background: #fff8fc;
  border-color: #ffd6e7;
}

.item-odd {
  background: #f8f3ff;
  border-color: #e1d5f5;
}

.item-emoji {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.item-label {
  font-family: "Yomogi", cursive;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c9b8f5;
  margin-bottom: 0.125rem;
}

.item-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #555;
}

.fav {
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid;
}

.fav-0 {
  background: #fff8fc;
  border-color: #ffd6e7;
}

.fav-1 {
  background: #f8f3ff;
  border-color: #e1d5f5;
}

.fav-2 {
  background: #f0faf5;
  border-color: #b8f5e0;
}

.fav-3 {
  background: #fffde7;
  border-color: #fff176;
}

.fav-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
  font-family: "Yomogi", cursive;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ff69b4;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: #fff;
  color: #888;
  border: 1.5px solid #ffd6e7;
}

.sns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  padding: 0.625rem 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.sns:hover {
  opacity: 0.8;
}

.sns:active {
  transform: scale(0.95);
}

.sns-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sns-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.sns-icon-x {
  background: #111;
  color: #fff;
}

.sns-icon-ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.sns-icon-tt {
  background: #111;
  color: #fff;
}

.sns-icon-yt {
  background: #fff;
  color: #ff0000;
}

.sns-icon-note {
  background: #41c9b4;
  color: #fff;
}

.sns-icon-line {
  background: transparent;
  color: #06c755;
}

.sns-icon-line svg {
  width: 1.85rem;
  height: 1.85rem;
}

.sns-icon-copy {
  background: #ff69b4;
  color: #fff;
}

.sns-text {
  flex: 1;
  min-width: 0;
}

.sns-platform {
  font-family: "Yomogi", cursive;
  font-size: 0.75rem;
  font-weight: 700;
}

.sns-handle {
  font-size: 0.875rem;
  font-weight: 700;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sns-ext {
  flex-shrink: 0;
  opacity: 0.5;
}

.sns-x {
  background: #f5f5f5;
  border: 2px solid #11111122;
}

.sns-x .sns-platform {
  color: #111;
}

.sns-ig {
  background: #fce4ec;
  border: 2px solid #e1306c30;
}

.sns-ig .sns-platform {
  color: #e1306c;
}

.sns-tt {
  background: #f5f5f5;
  border: 2px solid #01010130;
}

.sns-tt .sns-platform {
  color: #010101;
}

.sns-yt {
  background: #ffebee;
  border: 2px solid #ff000030;
}

.sns-yt .sns-platform {
  color: #ff0000;
}

.sns-note {
  background: #e0f7f4;
  border: 2px solid #41c9b430;
}

.sns-note .sns-platform {
  color: #41c9b4;
}

.share {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(201, 184, 245, 0.3);
  border: 3px solid #c9b8f5;
}

.share-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(90deg, #c9b8f5, #ff69b4);
}

.share-title {
  font-family: "Yomogi", cursive;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15);
}

.share-deco {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
}

.share-body {
  padding: 1rem 1.25rem;
  background: #fffcfe;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.share-caption {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: #f9a8d4;
  font-family: "Yomogi", cursive;
}

.share-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.share-btn:hover {
  opacity: 0.8;
}

.share-btn:active {
  transform: scale(0.95);
}

.share-btn-label {
  flex: 1;
  text-align: left;
}

.share-x {
  background: #f5f5f5;
  border: 2px solid #11111122;
  color: #111;
}

.share-line {
  background: #e8f9ee;
  border: 2px solid #06c75540;
  color: #06c755;
}

.share-copy {
  background: #fff0f5;
  border: 2px solid #ff69b440;
  color: #ff69b4;
}

.footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-bottom: 1rem;
}

.footer-emojis {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 12px;
}

.footer p {
  margin: 0.25rem 0 0;
  font-family: "Yomogi", cursive;
  font-size: 0.75rem;
  color: #f9a8d4;
}

.heartbeat {
  animation: heartbeat 1.5s ease-in-out infinite;
}

.spin-slow {
  animation: spin-slow 8s linear infinite;
}

.twinkle {
  animation: twinkle 2s ease-in-out infinite;
}

.twinkle-2 {
  animation: twinkle 1.7s ease-in-out infinite 0.4s;
}

.twinkle-3 {
  animation: twinkle 2.3s ease-in-out infinite 0.8s;
}

.bounce-gentle {
  display: inline-block;
  font-size: 1.125rem;
  animation: bounce-gentle 2s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-12px) rotate(5deg);
  }
}

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

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.15);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes bounce-gentle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
