:root { color-scheme: light; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; color: #30323a; background: #fff; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #fff; }
[hidden] { display: none !important; }
#wallpaper { position: fixed; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; touch-action: none; user-select: none; background: transparent; }
#video-notice { position: fixed; z-index: 3; right: 18px; bottom: 70px; max-width: min(560px, calc(100vw - 36px)); max-height: 45vh; overflow: auto; white-space: pre-line; overflow-wrap: anywhere; padding: 10px 14px; border: 1px solid #dedfe4; border-radius: 10px; background: #ffffffee; color: #684d3a; font-size: 12px; line-height: 1.6; }
#asset-notice { position: fixed; z-index: 3; right: 18px; top: 18px; max-width: min(420px, calc(100vw - 36px)); padding: 10px 14px; border: 1px solid #dedfe4; border-radius: 10px; background: #ffffffee; color: #684d3a; font-size: 12px; line-height: 1.6; }
#music-start { position: fixed; bottom: 22px; right: 22px; z-index: 3; font-size: 12px; }
#motion-status { position: fixed; top: 18px; right: 18px; z-index: 3; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; max-width: calc(100vw - 36px); padding: 10px 12px; border: 1px solid #dedfe4; border-radius: 12px; background: #ffffffee; box-shadow: 0 2px 12px #20253708; font-size: 12px; }
#motion-status button { padding: 6px 10px; }
#load-error { position: fixed; inset: 45% 12% auto; text-align: center; color: #8a3333; }
#preview { position: fixed; bottom: 22px; left: 22px; z-index: 2; }
button, .file-button { border: 1px solid #dedfe4; border-radius: 10px; background: #fff; color: inherit; font: inherit; cursor: pointer; padding: 9px 13px; }
button:hover, .file-button:hover { background: #f2f3f6; }
button:focus-visible, input:focus-visible { outline: 2px solid #6b83b6; outline-offset: 3px; }
#settings-toggle { font-size: 12px; color: #717581; box-shadow: 0 2px 12px #20253708; }
#settings { position: absolute; bottom: 48px; left: 0; width: 320px; max-width: calc(100vw - 44px); max-height: calc(100dvh - 100px); overflow: auto; padding: 20px; background: #ffffffed; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 12px 50px #2c304514; backdrop-filter: blur(14px); }
header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
header strong { font-size: 15px; } header span { font-size: 10px; color: #9296a1; }
.hint { font-size: 11px; line-height: 1.7; color: #818591; margin: 12px 0 16px; }
.background-options { padding: 14px 0 0; }
details { border-top: 1px solid #e5e7eb; padding: 12px 0; }
summary { cursor: pointer; font-size: 12px; font-weight: 600; }
summary:focus-visible, select:focus-visible { outline: 2px solid #6b83b6; outline-offset: 3px; }
.wide { width: 100%; padding: 7px; font-size: 11px; }
.wide + .wide { margin-top: 8px; }
.color-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 12px; }
input[type=color] { width: 46px; height: 30px; padding: 2px; background: #fff; border: 1px solid #dedfe4; border-radius: 6px; cursor: pointer; }
.fit-row { display: block; font-size: 11px; margin: 12px 0; }
select { display: block; width: 100%; padding: 7px; border: 1px solid #dedfe4; border-radius: 8px; margin-top: 6px; color: inherit; background: #fff; font: inherit; }
#background-clear { width: 100%; padding: 7px; font-size: 11px; }
.range-row { display: block; margin: 14px 0; font-size: 12px; }
output { float: right; font-variant-numeric: tabular-nums; color: #858996; }
input[type=range] { display: block; width: 100%; margin: 9px 0 0; accent-color: #68758e; }
input[type=checkbox] { accent-color: #68758e; }
.checks { display: flex; gap: 18px; font-size: 11px; margin: 16px 0; }
.checks label { display: flex; align-items: center; gap: 4px; }
.file-button { display: block; text-align: center; font-size: 12px; }
.file-button input { display: none; }
audio { width: 100%; height: 32px; margin-top: 12px; }
.status { font-size: 10px; line-height: 1.5; color: #8b8f9b; overflow-wrap: anywhere; margin: 12px 0; }
footer { display: flex; gap: 8px; } footer button { flex: 1; font-size: 11px; }
