:root {
  color-scheme: dark;
  font-family: Arial, "Microsoft JhengHei", "PingFang TC", sans-serif;
  color: #fff;
  background: #160f25;
  font-synthesis: none;
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 12px calc(110px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(ellipse 230px 150px at 50% 45px, #340c32 0%, transparent 100%);
}
.activity {
  overflow: hidden;
  height: 33px;
  margin: 0 -11px 0 7px;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ff42a1;
  border-radius: 30px;
  background: linear-gradient(90deg, #f00084, #f90087);
  box-shadow: 0 4px 20px #fd007b55, inset 0 1px 0 #ff82bc55;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.activity > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero { height: 129px; padding-top: 15px; text-align: center; }
.hero h1 { margin: 0; font-size: 23px; line-height: 32px; letter-spacing: 1px; text-shadow: 0 0 12px #ff29a587; }
.flame { display: inline-block; margin-right: 2px; font-size: 26px; filter: drop-shadow(0 0 8px #ff008e); vertical-align: -1px; }
.hero p { margin: 6px 0 10px; color: #d9bce6; font-size: 13px; letter-spacing: .2px; }
.verified { display: inline-flex; align-items: center; gap: 3px; padding: 4px 10px; border: 1px solid #08784c; border-radius: 20px; background: #073c2c99; color: #00ed8e; box-shadow: inset 0 0 8px #00c86a14; font-size: 11px; line-height: 14px; font-weight: 700; }
.profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 10px; }
.profile { min-width: 0; overflow: hidden; border: 1px solid #39263d; border-radius: 12px; background: #1a1228; box-shadow: 0 4px 10px #0003; }
.portrait { position: relative; height: 200px; overflow: hidden; background: #20182c; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait::after { position: absolute; inset: auto 0 0; height: 48px; content: ""; background: linear-gradient(transparent, #1a1228); pointer-events: none; }
.distance { position: absolute; z-index: 1; top: 8px; left: 7px; min-width: 47px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 1px 4px; border: 1px solid #24694b; border-radius: 12px; background: #06432c; color: #00f297; font-size: 9px; font-weight: 700; letter-spacing: -.4px; box-shadow: 0 1px 4px #0004; }
.profile-info { padding: 10px 9px 9px; }
.profile-heading { display: flex; justify-content: space-between; align-items: center; gap: 3px; }
.profile-heading h2 { margin: 0; font-size: 14px; line-height: 19px; white-space: nowrap; }
.tag { padding: 2px 4px; border-radius: 3px; color: #ff72b5; background: #3a1230; font-size: 10px; line-height: 13px; white-space: nowrap; }
.bio { height: 27px; margin: 7px 0 7px; color: #c5b4cf; font-size: 10px; line-height: 13px; overflow: hidden; }
.chat-button { display: block; width: 100%; min-height: 30px; padding: 6px 4px; border: 0; border-radius: 6px; background: linear-gradient(100deg, #ff0086, #fa3cb0); color: #fff; box-shadow: 0 3px 12px #ff00832b; font-size: 11px; line-height: 18px; font-weight: 700; transition: filter .15s, transform .15s; }
.chat-button:hover, .official-line:hover { filter: brightness(1.1); }
.chat-button:active, .official-line:active { transform: scale(.98); }
.profile:nth-child(3) .bio, .profile:nth-child(4) .bio { height: 13px; }
.profile-preview .portrait { height: auto; aspect-ratio: 220 / 77; }
.profile-preview .portrait::after { height: 15px; }
.preview-info { padding: 9px; }
.contact-bar { position: fixed; z-index: 5; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; padding: 14px 19px calc(18px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, #101d18e8, #101c19); box-shadow: 0 -6px 16px #06130a55; }
.official-line { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 10px 8px; border: 1px solid #00bd28; border-radius: 30px; background: linear-gradient(100deg, #00cd5c, #00c600); color: white; box-shadow: 0 0 20px #00ef3540; font-size: 16px; line-height: 22px; font-weight: 700; transition: filter .15s, transform .15s; animation: line-breathe 2.4s ease-in-out infinite; }
.official-line:hover { animation-play-state: paused; }
.official-line:active { animation: none; }
@keyframes line-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 16px #00ef3540; }
  50% { transform: scale(1.025); box-shadow: 0 0 28px #00ef3570, 0 0 8px #00ef3530; }
}
.download-icon { width: 25px; height: 25px; flex: 0 0 auto; }
@media (max-width: 380px) {
  .activity { font-size: 9px; padding: 0 5px; }
  .hero h1 { font-size: 21px; }
  .portrait { height: 180px; }
  .profile-info { padding-right: 7px; padding-left: 7px; }
  .profile-heading h2 { font-size: 13px; }
  .tag { font-size: 9px; padding: 2px; }
  .official-line { font-size: 13px; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .official-line { animation: none; }
}
