:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: #f4f4f5;
  background: #0b0c0e;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; position: relative; isolation: isolate; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button[hidden] { display: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
::selection { color: #fff; background: #424754; }

.cosmos {
  z-index: -1;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, 1080px);
  transform: translateX(-50%);
  pointer-events: none;
  background: url("assets/cosmos.webp") center -45px / max(100%, 640px) auto no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.page { width: min(calc(100% - 48px), 560px); margin-inline: auto; padding: 30px 0 34px; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.brand-symbol { font-size: 28px; font-weight: 300; line-height: 1; color: #dddfe4; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffffff30; border-radius: 50%; color: #e3e3e5; background: #11121455; transition: border-color .2s, background .2s, transform .2s; }
.icon-button:hover { border-color: #ffffff85; background: #ffffff12; }
.icon-button:active { transform: scale(.95); }

.profile { text-align: center; margin-top: 28px; animation: arrive .7s ease-out both; }
.avatar { width: 126px; height: 126px; margin-inline: auto; border: 1px solid #d5d6dc; border-radius: 50%; position: relative; overflow: hidden; background: #080d17; box-shadow: 0 0 0 5px #08090b38, 0 15px 36px #0004; }
.avatar img { display: block; width: 164%; height: 164%; max-width: none; position: absolute; left: -32%; top: -3%; object-fit: cover; }
h1 { margin: 17px 0 5px; font-size: 46px; line-height: 1.12; font-weight: 700; letter-spacing: -.035em; }
.affiliation { margin: 0; font-size: 14px; line-height: 1.8; letter-spacing: .12em; color: #e4e4e7; }
.affiliation-divider { padding: 0 .18em; color: #9b9ca3; }
.intro { margin-top: 23px; font-size: 14px; line-height: 1.95; letter-spacing: .075em; font-weight: 400; color: #d8d8de; }
.intro p { margin: 0; }

.links { display: grid; gap: 12px; margin-top: 34px; animation: arrive .7s .08s ease-out both; }
.link-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  column-gap: 20px;
  align-items: center;
  position: relative;
  min-height: 86px;
  padding: 17px 22px;
  border: 1px solid #c2c5cf61;
  border-radius: 18px;
  color: inherit;
  background: linear-gradient(115deg, #ffffff07, #ffffff02 52%, #ffffff08);
  text-decoration: none;
  box-shadow: inset 0 1px 0 #ffffff04;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.link-card:hover { transform: translateY(-3px); border-color: #dce0ebad; background: linear-gradient(115deg, #ffffff10, #ffffff06 52%, #ffffff0d); box-shadow: 0 8px 25px #0003; }
.link-card:active { transform: translateY(0) scale(.988); }
.featured { border-color: #eceef5d9; background: linear-gradient(120deg, #ffffff0f, #ffffff06 50%, #ffffff10); box-shadow: 0 0 4px #fff9, 0 0 23px #e6e9ff18, inset 0 1px 10px #ffffff16; }
.featured:hover { box-shadow: 0 0 5px #fffb, 0 0 30px #e6e9ff24, inset 0 1px 10px #ffffff1c; }
.brand-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; }
.brand-icon img { display: block; object-fit: contain; filter: brightness(0) invert(1); }
.brand-line { background: #06c755; }
.brand-bingx { background: #0f5fff; }
.brand-discord { background: #5865f2; }
.brand-threads { background: #050505; border: 1px solid #ffffff30; }
.brand-youtube { background: #f00; }
.brand-youtube img { filter: none; }
.link-copy { display: grid; align-content: center; gap: 5px; border-left: 1px solid #d5d7e85c; padding-left: 20px; min-width: 0; }
.link-title { font-size: 18px; line-height: 1.4; font-weight: 550; letter-spacing: .045em; overflow-wrap: anywhere; }
.link-subtitle { font-size: 12px; line-height: 1.5; color: #cbccd3; letter-spacing: .055em; overflow-wrap: anywhere; }
.link-arrow { color: #e5e6eb; justify-self: end; transition: transform .22s ease; }
.link-card:hover .link-arrow { transform: translate(2px, -2px); }
.section-divider { display: flex; align-items: center; justify-content: center; gap: 23px; margin: 10px 0; }
.section-divider span { width: 78px; height: 1px; background: linear-gradient(90deg, transparent, #c0c3cc8c); }
.section-divider span:last-child { transform: rotate(180deg); }
.section-divider p { margin: 0; font-size: 13px; line-height: 1.8; color: #d4d5dd; letter-spacing: .15em; white-space: nowrap; }

.footer { margin-top: 32px; text-align: center; color: #b9bbc4; font-size: 11px; letter-spacing: .2em; line-height: 1.9; }
.footer p { margin: 0; }
.footer .footer-brand { font-size: 12px; letter-spacing: .42em; margin-bottom: 7px; padding-left: .42em; color: #dedfe5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.share-dialog { width: min(420px, calc(100% - 40px)); padding: 0; color: #f4f4f5; border: 1px solid #ffffff38; border-radius: 22px; background: #151619; box-shadow: 0 24px 90px #000b; }
.share-dialog::backdrop { background: #000b; -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.share-panel { padding: 34px 27px 21px; position: relative; }
.close-button { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; }
.dialog-eyebrow { margin: 0 0 15px; font-size: 11px; color: #a9aab5; letter-spacing: .13em; }
.share-panel h2 { font-size: 22px; font-weight: 550; line-height: 1.45; margin: 0; }
.share-panel > p:not(.dialog-eyebrow):not(.share-status) { color: #bfc0c8; font-size: 13px; line-height: 1.75; margin: 12px 0 22px; }
.share-panel input { width: 100%; border: 1px solid #ffffff30; padding: 13px 12px; border-radius: 10px; background: #0b0c0e; color: #d2d4dd; font-size: 12px; }
.copy-button { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; border: 0; width: 100%; min-height: 45px; border-radius: 10px; color: #131417; background: #e7e8ed; font-size: 14px; font-weight: 550; }
.copy-button:hover { background: #fff; }
.share-status { min-height: 21px; margin: 11px 0 0; text-align: center; font-size: 12px; line-height: 1.75; color: #c8cbd5; }

@keyframes arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 900px) { .page { padding-top: 34px; } .profile { margin-top: 18px; } }
@media (max-width: 480px) {
  .page { width: calc(100% - 40px); padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .topbar { min-height: 34px; }
  .brand-symbol { font-size: 25px; }
  .icon-button { width: 34px; height: 34px; }
  .profile { margin-top: 23px; }
  .avatar { width: 112px; height: 112px; }
  h1 { font-size: 41px; margin-top: 17px; }
  .affiliation { font-size: 12px; letter-spacing: .085em; }
  .intro { font-size: 12px; letter-spacing: .035em; margin-top: 21px; line-height: 2; }
  .links { margin-top: 29px; gap: 11px; }
  .link-card { grid-template-columns: 40px minmax(0, 1fr) 17px; column-gap: 14px; border-radius: 15px; min-height: 78px; padding: 15px 16px; }
  .brand-icon { width: 40px; height: 40px; border-radius: 10px; }
  .brand-icon img { max-width: 27px; max-height: 27px; }
  .link-copy { padding-left: 14px; gap: 4px; }
  .link-title { font-size: 16px; letter-spacing: .025em; }
  .link-subtitle { font-size: 10.5px; letter-spacing: .02em; }
  .link-arrow { width: 18px; height: 18px; }
  .section-divider { margin: 9px 0; gap: 19px; }
  .section-divider p { font-size: 12px; }
  .section-divider span { width: 53px; }
  .footer { font-size: 10px; margin-top: 27px; }
}
@media (max-width: 350px) {
  .page { width: calc(100% - 32px); }
  .intro { font-size: 11px; }
  .link-card { grid-template-columns: 36px minmax(0, 1fr) 15px; column-gap: 11px; padding-inline: 13px; }
  .brand-icon { width: 36px; height: 36px; }
  .link-copy { padding-left: 11px; }
  .link-title { font-size: 14px; }
  .link-subtitle { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
