:root { color-scheme: dark; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; color: #f8d4e2; background: #050306; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, a { color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.experience { position: relative; display: grid; grid-template-rows: minmax(380px, 1fr) auto; min-height: 600px; height: 100vh; height: 100svh; }
.topbar { position: absolute; z-index: 2; inset: max(20px, env(safe-area-inset-top)) clamp(20px, 4vw, 64px) auto; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.brand { pointer-events: auto; padding: 12px 0; font: 12px/1.5 ui-monospace, Consolas, monospace; letter-spacing: .24em; color: #b799aa; text-decoration: none; }
#motion { pointer-events: auto; min-width: 64px; min-height: 44px; background: #10080e66; border: 1px solid #b97d962c; border-radius: 24px; font-size: 14px; color: #d6b3c3; transition: border-color .2s; }
.stage { min-height: 0; position: relative; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
canvas.is-dragging { cursor: grabbing; }
#bloom { position: absolute; right: clamp(20px, 4vw, 64px); bottom: 12px; min-height: 44px; padding: 8px 18px; border: 1px solid #eaa1bd4d; border-radius: 28px; background: #170b1380; color: #efbbd0; font-size: 14px; letter-spacing: .08em; }
#bloom span { color: #ff8abb; font-size: 20px; vertical-align: -1px; padding-right: 5px; }
button:hover { border-color: #ffadcc88 !important; background-color: #301322aa !important; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 1px solid #f3a3c1; outline-offset: 5px; }
.dedication { position: relative; padding: 4px 20px max(27px, env(safe-area-inset-bottom)); text-align: center; }
.dedication::before { content: ""; display: block; height: 1px; width: 64px; margin: 0 auto 19px; background: linear-gradient(90deg, transparent, #ec93b078, transparent); }
h1 { font-family: "STKaiti", "KaiTi", "Noto Serif CJK SC", serif; font-size: clamp(28px, 3.3vw, 39px); font-weight: 400; line-height: 1.5; letter-spacing: .15em; margin: 0; color: #ffd5e5; text-shadow: 0 0 22px #ea6ba55c, 0 0 55px #c1287133; }
.dedication p { color: #967688; font-size: 14px; line-height: 1.8; margin: 14px 0 0; }
.dedication p span { padding: 0 10px; opacity: .7; }
.dedication .touch-hint { display: none; }
#fallback { position: absolute; inset: 45% 20% auto; margin: 0; text-align: center; font-size: 16px; line-height: 1.8; }
@media (max-width: 600px) { .experience { min-height: 500px; grid-template-rows: minmax(330px, 1fr) auto; } .brand { letter-spacing: .16em; } .dedication { padding-bottom: max(22px, env(safe-area-inset-bottom)); } .dedication p { font-size: 14px; } .dedication p span { padding: 0 3px; } #bloom { bottom: 0; right: 20px; } }
@media (pointer: coarse), (max-width: 700px) { .dedication .desktop-hint { display: none; } .dedication .touch-hint { display: block; } #motion, #bloom { min-height: 48px; } }
@media (pointer: coarse) and (orientation: landscape) and (max-height: 540px) { .experience { min-height: 420px; grid-template-rows: minmax(290px, 1fr) auto; } .dedication { padding-bottom: 10px; } .dedication::before { margin-bottom: 5px; } h1 { font-size: 28px; } .dedication p { margin-top: 3px; } }
@media (prefers-reduced-motion: reduce) { button { transition: none !important; } }
