:root {
  color-scheme: light;
  font-family: 'LXGW WenKai TC', 'Klee One', 'Noto Sans CJK TC', 'Noto Sans CJK JP', cursive;
  color: var(--plum, CanvasText);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.page { position: relative; width: min(1160px, 100%); margin: 0 auto; padding: 28px 40px 30px; }
#painted-page { position: absolute; inset: 0; pointer-events: none; }
.topbar, .profile, footer { position: relative; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; }
.paw-mark { flex: 0 0 31px; height: 31px; color: var(--plum, CanvasText); text-align: center; font-size: 27px; }
.language-picker { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.language-buttons { display: flex; gap: 4px; }
.language-buttons button { min-width: 46px; min-height: 44px; padding: 9px; border: 1px solid var(--lavender, ButtonText); border-radius: 9px; background: white; }
.language-buttons button[aria-pressed="true"] { background: color-mix(in srgb, var(--blue, Highlight) 18%, white); border-color: var(--plum, ButtonText); }

.profile { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); align-items: center; gap: 40px; min-height: calc(100svh - 180px); padding: 78px 0 64px; }
.artwork { grid-column: 2; grid-row: 1; margin: 0 -20px 0 0; }
.artwork img { display: block; width: 100%; height: auto; }
.introduction { grid-column: 1; grid-row: 1; }
.greeting { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.name-block { display: inline-flex; max-width: 100%; flex-direction: column; align-items: center; gap: 8px; vertical-align: top; }
.name-heading { display: flex; align-items: center; gap: 8px; }
h1 { min-width: 0; margin: 0; font-size: clamp(32px, 3.9vw, 46px); line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; color: var(--plum, CanvasText); }
.other-name, .tagline { color: var(--jpPlum, currentColor); }
.name-crown { width: 84px; height: 48px; text-align: center; font-size: 36px; }
.name-star { flex: 0 0 28px; height: 28px; font-size: 26px; }
.name-line, .tagline-line { display: block; height: 18px; }
.name-line { width: 92%; }
.other-name { margin: 8px 0 24px; font-size: 24px; font-weight: 600; }
.tagline { margin: 0; font-size: clamp(24px, 2.4vw, 29px); line-height: 1.5; font-weight: 700; }
.tagline > span { display: block; }
.tagline-line { width: min(90%, 318px); margin-top: 8px; }
.intro { margin: 8px 0 23px; font-size: 14px; }
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.social-link {
  --tile-color: var(--blue, ButtonText);
  display: flex; align-items: center; gap: 10px; padding: 14px 12px;
  border: 1px solid color-mix(in srgb, var(--tile-color) 70%, white);
  border-radius: 16px; background: color-mix(in srgb, var(--tile-color) 10%, white);
}
.facebook-link { --tile-color: var(--pink, ButtonText); }
.bilibili-link { --tile-color: var(--lavender, ButtonText); }
.qq-link { --tile-color: var(--orange, ButtonText); }
.social-link:hover { border-color: var(--plum, ButtonText); }
.social-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--tile-color) 20%, white); font: 700 18px system-ui, sans-serif; }
.social-copy { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.social-copy strong { font-size: 16px; }
.handle { font-size: 12px; }
.social-action { font-size: 12px; margin-top: 3px; }
.arrow { margin-left: auto; flex: 0 0 20px; height: 20px; font-size: 19px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--plum, Highlight); outline-offset: 4px; }
footer { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; line-height: 1.8; }
.footer-paw, .footer-star { flex: 0 0 33px; height: 33px; text-align: center; font-size: 26px; }

.is-painted [data-mark] { color: transparent; visibility: hidden; }
.is-painted .social-link, .is-painted .social-icon, .is-painted .language-buttons button { background: transparent; }

@media (min-width: 1000px) {
  .profile { grid-template-columns: minmax(454px, .95fr) minmax(0, 1.2fr); }
}

@media (max-width: 760px) {
  .page { max-width: 500px; padding: 20px 24px 26px; }
  .topbar { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .wordmark { margin-right: auto; }
  .language-picker { margin-left: auto; }
  .language-label { display: none; }
  .profile { display: flex; flex-direction: column; gap: 28px; min-height: auto; padding: 28px 0 38px; }
  .artwork { width: min(100%, 370px); margin: 0; }
  .introduction { width: 100%; text-align: center; }
  .greeting { font-size: 13px; }
  h1 { font-size: clamp(29px, 8vw, 36px); }
  .name-crown { width: 72px; height: 43px; }
  .name-star { flex-basis: 25px; height: 25px; }
  .tagline-line { margin-inline: auto; }
  .socials { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 390px) {
  .page { padding-inline: 18px; }
  .wordmark { margin-right: 0; }
  .language-picker { margin-left: 0; }
  .topbar { gap: 10px 16px; }
}

@media (forced-colors: active) {
  #painted-page { display: none !important; }
  .is-painted [data-mark] { color: CanvasText; visibility: visible; }
  .social-link, .language-buttons button { border-color: ButtonText; }
}
