:root { color-scheme: dark; font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; color: #f6fffb; background: #02090d; letter-spacing: 0; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; border: 1px solid #b4d9d9; background: #05232bc9; border-radius: 40px; min-height: 44px; padding: 10px 20px; touch-action: manipulation; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible { outline: 3px solid #91ffdd; outline-offset: 4px; }
[hidden] { display: none !important; }
[v-cloak] { display: none; }
#app { max-width: 600px; margin: auto; min-height: 100vh; min-height: 100svh; position: relative; }
.screen { min-height: 100vh; min-height: 100svh; }
.home { position: relative; background: #01080e; }
.cover { display: block; width: 100%; height: 100vh; height: 100svh; object-fit: cover; object-position: center; }
.start-area { position: absolute; bottom: calc(8% + env(safe-area-inset-bottom, 0px)); left: 8%; width: 84%; text-align: center; }
.primary { border-color: #3cf3b6; background: #3cf3b6; color: #001e1b; font-weight: 700; }
#start { min-width: 220px; font-size: 23px; box-shadow: 0 0 12px #60f8e6a6, 0 0 28px #35dabc66; }
#summary { font-size: 12px; line-height: 1.6; text-shadow: 0 1px 5px #000; }
.music { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: max(16px, calc((100vw - 600px) / 2 + 16px)); width: 42px; height: 42px; min-height: 42px; padding: 8px; background: #031918a6; z-index: 20; }
.music img { width: 100%; height: 100%; object-fit: contain; }
.music-note { display: block; font-size: 24px; line-height: 24px; }
.music.playing img, .music.playing .music-note { animation: spin 5s linear infinite; }
.music:not(.playing)::after { content: ''; width: 27px; height: 1px; background: white; position: absolute; top: 20px; left: 7px; transform: rotate(-45deg); }
.quiz { position: relative; isolation: isolate; padding: 76px 18px 32px; display: flex; align-items: center; background: #020e17; overflow: hidden; }
.stage-lights { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.stage-beam { position: absolute; inset: -25%; opacity: .65; filter: blur(24px); pointer-events: none; transform-origin: 50% 90%; }
.stage-beam-one { background: conic-gradient(from 205deg at 30% 90%, transparent 0deg, rgba(33,255,159,.8) 18deg, transparent 46deg, rgba(0,210,204,.55) 65deg, transparent 95deg); animation: beam-sweep-one 16s -3s ease-in-out infinite alternate, beam-intensity 4.6s -.8s ease-in-out infinite; }
.stage-beam-two { background: conic-gradient(from 245deg at 85% 85%, transparent 0deg, rgba(0,223,239,.7) 23deg, transparent 52deg, rgba(118,255,103,.7) 76deg, transparent 105deg); animation: beam-sweep-two 19s -8s ease-in-out infinite alternate, beam-intensity 5.8s -3.2s ease-in-out infinite; }
.stage-beam-three { background: linear-gradient(155deg, transparent 30%, rgba(28,217,182,.08) 42%, rgba(76,255,151,.6) 49%, rgba(0,179,215,.25) 56%, transparent 70%); animation: beam-sweep-three 21s -11s ease-in-out infinite alternate, beam-intensity 6.7s -4.5s ease-in-out infinite; }
.quiz-content { position: relative; z-index: 1; width: 100%; }
.progress { text-align: center; font-size: 26px; font-weight: 700; margin: 0 0 12px; }
.question-panel { padding: 32px 16px; border: 1px solid #9bc6c7; border-radius: 8px; background: #00151e88; }
h1 { font-size: 26px; text-align: center; line-height: 1.45; margin: 0 0 14px; overflow-wrap: anywhere; }
.hint { text-align: center; color: #a2ddc9; font-size: 13px; margin: 0 0 22px; }
.options { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; margin: 30px 0; }
.options.pair { grid-template-columns: repeat(2, minmax(0,1fr)); }
.options.artists { display: flex; flex-wrap: wrap; gap: 10px; }
.option { position: relative; min-width: 0; display: flex; align-items: stretch; border: 1px solid #87bab9; border-radius: 8px; background: #104c54d9; }
.option-choice { width: 100%; border: 0; background: none; border-radius: 7px; text-align: left; display: flex; align-items: center; gap: 14px; padding: 14px; min-height: 74px; }
.option-letter { font-size: 32px; font-weight: 700; color: #00e4ca; flex: none; }
.option-content { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.pair .option-choice { flex-direction: column; justify-content: center; text-align: center; min-height: 150px; }
.artists .option { flex: 1 1 130px; }
.artists .option-choice { justify-content: center; text-align: center; min-height: 56px; }
.artists .option-letter { display: none; }
.option.selected { background: #aeef79; box-shadow: 0 0 15px #52eacb77; border-color: #d2ffb3; }
.selected .option-choice, .selected .option-letter { color: #003638; }
.audio-button { flex: 0 0 38px; width: 38px; padding: 6px; min-height: 38px; border: 0; border-radius: 0; color: #aaffed; background: transparent; align-self: center; }
.selected .audio-button { color: #064940; }
.audio-button.playing { color: white; background: #057766; }
.question-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 32px; }
.next { width: 65%; min-width: 180px; border-radius: 12px; font-size: 19px; }
.previous { border: 0; background: transparent; color: #adc2c5; font-size: 14px; }
.result { padding-bottom: calc(172px + env(safe-area-inset-bottom, 0px)); }
.poster-image { width: 100%; height: auto; display: block; }
#poster-status { padding: 100px 24px 20px; text-align: center; line-height: 1.7; }
#retry-poster { display: block; margin: 0 auto; }
.result-actions { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%,600px); z-index: 10; padding: 20px 18px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, #011620ed 25%); }
.action-row { display: flex; gap: 12px; margin-bottom: 10px; }
.result-actions button { font-size: 17px; min-height: 48px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.action-row button { flex: 1; min-width: 0; }
.result-actions span { font-size: 25px; }
.action-icon { display: block; width: 24px; height: 24px; flex: 0 0 24px; }
#restart { width: 100%; }
#notice { position: fixed; z-index: 40; left: 50%; bottom: 185px; transform: translateX(-50%); width: max-content; max-width: 85%; padding: 12px 20px; border-radius: 8px; background: #152725f2; color: white; text-align: center; line-height: 1.6; }
dialog { color: #f3fffa; border: 1px solid #678f85; border-radius: 8px; background: #041c1e; max-width: min(90%, 520px); max-height: 85vh; }
dialog::backdrop { background: #000c; }
dialog img { display: block; width: 100%; }
#save-dialog { width: min(92%, 520px); padding: 14px; overflow: hidden; }
#save-dialog p { margin: 8px 48px 14px 0; }
#save-preview { width: 100%; height: 65vh; height: 65svh; object-fit: contain; object-position: center; -webkit-touch-callout: default; }
#close-save { position: sticky; top: 0; float: right; font-size: 25px; }
#share-link { display: block; width: 100%; padding: 12px; margin-bottom: 16px; background: #fff; color: #122925; border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beam-sweep-one { from { transform: translate(-4%, 4%) rotate(-16deg); } to { transform: translate(6%, -3%) rotate(16deg); } }
@keyframes beam-sweep-two { from { transform: translate(5%, -2%) rotate(18deg); } to { transform: translate(-7%, 5%) rotate(-14deg); } }
@keyframes beam-sweep-three { from { transform: translate(-8%, 12%) rotate(-8deg); } to { transform: translate(8%, -10%) rotate(10deg); } }
@keyframes beam-intensity { 0%, 100% { opacity: .22; } 35% { opacity: .9; } 65% { opacity: .42; } 82% { opacity: .75; } }
@media (max-width: 360px) { h1 { font-size: 23px; } .question-panel { padding: 24px 12px; } .pair .option-choice { padding: 10px; } .result-actions button { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
