:root { font-family: Arial, "Microsoft YaHei", sans-serif; color: #182230; background: #eef3fa; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 0%, #dcecff 0, transparent 34%), linear-gradient(135deg, #f5f8fc, #e5edf7); }
.panel { width: min(640px, calc(100% - 32px)); margin: 5vh auto; padding: 42px 48px 36px; background: #fff; border: 1px solid #e2e9f2; border-radius: 18px; box-shadow: 0 18px 48px #2a46611f; }
.welcome-header { padding-bottom: 20px; border-bottom: 1px solid #e7edf4; }
.experiment-tag { display: inline-block; padding: 5px 10px; border-radius: 999px; color: #245bb5; background: #eaf2ff; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
h1 { margin: 13px 0 9px; color: #14284a; font-size: 32px; letter-spacing: .03em; }
.welcome-header p { margin: 0; color: #53657a; font-size: 16px; }
.experiment-note { margin: 18px 0 26px; padding: 12px 14px; border-left: 3px solid #4b83db; border-radius: 4px; color: #475a70; background: #f6f9fd; font-size: 14px; line-height: 1.65; }
#participant-form { display: grid; gap: 18px; }
#participant-form label { display: grid; gap: 8px; color: #25364d; font-size: 15px; font-weight: 700; }
#participant-form label small { color: #77869a; font-size: 13px; font-weight: 400; }
input, select, button { font: inherit; }
#participant-form input, #participant-form select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cdd8e5; border-radius: 8px; color: #172940; background: #fff; outline: none; transition: border-color .18s, box-shadow .18s; }
#participant-form input:focus, #participant-form select:focus { border-color: #3673cf; box-shadow: 0 0 0 3px #3673cf20; }
button { cursor: pointer; background: #2865c6; color: white; border: 0; border-radius: 8px; font-weight: 700; }
#start-button { min-height: 50px; margin-top: 6px; background: linear-gradient(135deg, #2f70d2, #1f58b4); font-size: 18px; box-shadow: 0 7px 14px #2865c633; transition: transform .18s, box-shadow .18s; }
#start-button:hover { transform: translateY(-1px); box-shadow: 0 10px 18px #2865c640; }
.error { min-height: 1.2em; margin: 2px 0 0; color: #bd302b; font-size: 14px; }
#jspsych-target { display: none; min-height: 100vh; background: #969696; }
.jspsych-display-element, .jspsych-content-wrapper { min-height: 100vh; background: #969696; color: #000; font-family: Arial, sans-serif; }
.experiment-screen { position: relative; width: 100vw; height: 100vh; overflow: hidden; font-family: Arial, sans-serif; font-size: 50px; }
.center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.loc { position: absolute; transform: translate(-50%, -50%); line-height: 1; }
.loc-1 { left: calc(50% - 150px); top: calc(50% - 150px); }
.loc-2 { left: calc(50% - 150px); top: calc(50% + 150px); }
.loc-3 { left: calc(50% + 150px); top: calc(50% - 150px); }
.loc-4 { left: calc(50% + 150px); top: calc(50% + 150px); }
.prompt { position: absolute; left: 50%; transform: translateX(-50%); }
.instruction { width: min(1200px, calc(100vw - 80px)); height: auto; max-height: calc(100vh - 48px); object-fit: contain; }
.surprise-prompt { width: 660px; height: 150px; top: calc(50% - 350px); }
.location-prompt { width: 390px; height: 60px; top: calc(50% - 270px); }
.feedback { position: absolute; width: 160px; height: 40px; transform: translateX(-50%); }
.post-form { font-size: 20px; line-height: 1.5; text-align: left; }
.post-form h2 { margin: 0 0 28px; text-align: center; font-size: 28px; }
#jspsych-survey-html-form { width: min(760px, calc(100vw - 40px)); margin: 0 auto; padding: 8vh 0; text-align: left; }
#jspsych-survey-html-form-next { display: block; min-width: 150px; min-height: 46px; margin: 0 auto; padding: 10px 24px; border: 0; border-radius: 8px; color: #fff; background: #2865c6; font-size: 18px; font-weight: 700; cursor: pointer; }
.post-form fieldset { margin: 0 0 28px; padding: 18px 22px; border: 1px solid #555; }
.post-form legend { padding: 0 8px; }
.post-form label { display: inline-flex; align-items: center; gap: 8px; margin: 12px 28px 0 0; cursor: pointer; }
.post-form input[type="radio"] { width: 20px; height: 20px; margin: 0; padding: 0; }
.post-form button { font-size: 20px; }
.identity-option { position: absolute; left: 50%; transform: translateX(-50%); white-space: pre; }
.identity-option .letter { display: inline-block; width: 100px; text-align: center; }
.identity-option .key { display: inline-block; width: 100px; text-align: center; }
.identity-1 { top: calc(50% - 150px); }
.identity-2 { top: calc(50% - 50px); }
.identity-3 { top: calc(50% + 50px); }
.identity-4 { top: calc(50% + 150px); }
.end-image { width: 340px; height: 40px; }
.completion { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 32px; background: #969696; font-size: 26px; line-height: 1.5; text-align: center; }
@media (max-width: 700px) { .panel { margin: 20px auto; padding: 30px 24px; } h1 { font-size: 28px; } .instruction { width: min(600px, 95vw); height: auto; } .surprise-prompt { width: min(660px, 95vw); height: auto; } }
