:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  color: #f7eef5;
  color-scheme: dark;
  --background: #1c1720;
  --halo: #403046;
  --accent: #e4acd0;
  --accent-ink: #251c25;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 30%, var(--halo), transparent 60%), var(--background);
}
body[data-theme="miku"] { --background: #101d24; --halo: #25434a; --accent: #a0e2dc; --accent-ink: #112d30; }
body[data-theme="ribbonbun"] { --background: #201723; --halo: #49314c; --accent: #deb1eb; --accent-ink: #321b36; }
body[data-theme="derakkuma"] { --background: #14201f; --halo: #304b48; --accent: #aadbd4; --accent-ink: #17302d; }
main { width: min(900px, 95vw); padding: 28px 24px 40px; text-align: center; }
a { color: #d1c2d2; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.top-links { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 24px; font-size: 12px; }
.pet-switcher { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.pet-switcher a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 1px solid #ffffff16; border-radius: 999px; font-size: 13px; text-decoration: none; }
.pet-switcher a:hover { background: #ffffff0a; }
.pet-switcher a[aria-current="page"] { color: var(--accent); border-color: var(--accent); background: #ffffff06; }
.form-switcher { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: -10px 0 24px; }
.form-switcher a { padding: 8px 14px; min-height: 36px; border-radius: 9px; text-decoration: none; font-size: 12px; color: #b5c1be; }
.form-switcher a:hover { background: #ffffff0a; }
.form-switcher a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }
header { margin-bottom: 18px; }
.eyebrow { font-size: 11px; letter-spacing: 4px; color: var(--accent); }
h1 { font-size: 32px; letter-spacing: 2px; font-weight: 650; margin: 12px 0; }
p { color: #beafc2; font-size: 14px; }
.stage { height: 380px; position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; border: 1px solid #ffffff0c; border-radius: 28px; background: radial-gradient(ellipse at 50% 65%, #ffffff08, transparent 60%); }
.pet { width: 192px; height: 208px; background-size: 1536px 2288px; background-repeat: no-repeat; transform: translateY(-6px) scale(1.55); position: relative; z-index: 2; }
.pet--pixel { image-rendering: pixelated; }
.stage::after { content: ""; width: 235px; height: 2px; border-radius: 50%; background: #ffffff12; position: absolute; bottom: 51px; }
#status { font-size: 12px; line-height: 18px; color: #c8b9cb; position: absolute; bottom: 12px; margin: 0; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 25px 0 17px; }
button { font: inherit; font-size: 13px; min-height: 44px; border: 1px solid #ffffff16; color: #cdbed0; background: #ffffff06; border-radius: 12px; padding: 10px 16px; cursor: pointer; transition: background .18s, color .18s; }
button:hover { background: #ffffff12; color: #fff; }
button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.options { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 24px; }
.follow { color: #dac5d8; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; cursor: pointer; }
input { accent-color: var(--accent); }
.follow:has(input:disabled) { color: #8d8192; cursor: default; }
.hint { font-size: 12px; line-height: 1.8; margin: 7px 0; color: #ac98ad; }
footer { margin-top: 23px; color: #b5a4b9; font-size: 12px; line-height: 2; }
.downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 8px; }
@media (max-width: 480px) {
  main { padding: 22px 14px 32px; }
  h1 { font-size: 28px; }
  .stage { height: 350px; }
  .pet { transform: translateY(-6px) scale(1.35); }
  .top-links { margin-bottom: 20px; }
  .pet-switcher { gap: 7px; margin-bottom: 22px; }
  .pet-switcher a { padding: 8px 12px; }
  button { padding: 10px 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
