:root { color: #17151d; background: #fff; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #fff; }
button { font: inherit; cursor: pointer; }
.app-shell { position: relative; width: min(100%, 520px); min-height: 100dvh; margin: 0 auto; overflow: hidden; background: linear-gradient(180deg, #f6f8fd 0 16%, #fff 38%); }
.app-shell::before { content: ""; position: absolute; top: 76px; left: -30px; right: -30px; height: 170px; opacity: .46; background: radial-gradient(ellipse at 20% 0%, #ebf0ff 0 8%, transparent 30%), radial-gradient(ellipse at 80% 5%, #e6f3fb 0 8%, transparent 32%); pointer-events: none; }
.screen { position: relative; z-index: 1; width: 100%; min-height: 100dvh; }
.hidden { display: none !important; }
.welcome-screen, .result-screen { text-align: center; }
.result-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 32px; }
.event-header { height: max(72px, calc(58px + env(safe-area-inset-top))); display: grid; grid-template-columns: 42px 1fr 42px; align-items: end; padding: 0 20px 13px; background: #fff; }
.event-header h1 { margin: 0; color: #2a2732; font-size: 18px; font-weight: 600; }
.help-button { justify-self: end; display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; background: #377bed; color: #fff; font-family: Georgia, serif; font-size: 17px; font-weight: 700; }
.event-content { padding: 24px 21px 122px; text-align: left; }
.event-summary { display: grid; grid-template-columns: 154px 1fr; gap: 17px; }
.event-poster { width: 154px; height: 207px; overflow: hidden; border-radius: 10px; background: #0c1b36; }
.event-poster img { width: 100%; height: 100%; object-fit: cover; }
.event-copy h2 { margin: 5px 0 0; font-size: 20px; line-height: 1.55; font-weight: 550; }
.event-price { margin: 60px 0 0; color: #22202a; font-size: 25px; font-weight: 700; }
.event-price small { font-size: 14px; font-weight: 400; }
.event-information { margin-top: 28px; }
.event-information p { display: grid; gap: 6px; margin: 0 0 25px; }
.event-information strong { color: #393540; font-size: 17px; font-weight: 600; }
.event-information span { color: #aaa6b0; font-size: 13px; }
.event-tags { display: flex; flex-wrap: wrap; gap: 11px 13px; padding-bottom: 17px; color: #8b96ad; font-size: 12px; }
.preparation-card { padding: 21px 18px 14px; border-radius: 12px; background: #f5f8ff; }
.preparation-heading { display: flex; justify-content: space-between; align-items: center; }
.preparation-heading h2, .ticket-sheet h2, .safety-modal h2 { margin: 0; color: #56515f; font-size: 18px; font-weight: 600; }
.plain-button { padding: 0; border: 0; background: transparent; color: #8089a2; font-size: 13px; }
.preparation-card ul { margin: 16px 0 0; padding: 0; list-style: none; }
.preparation-card li { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; color: #8b94a8; font-size: 15px; }
.preparation-card em { padding: 3px 8px; border-radius: 15px; background: #dbf4e4; color: #56a775; font-size: 12px; font-style: normal; }
.event-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; overflow: hidden; border-radius: 11px; background: #f2f5fb; }
.event-tabs button { min-height: 47px; border: 0; background: transparent; color: #939aab; font-size: 16px; }
.event-tabs .active { border-radius: 11px; background: linear-gradient(90deg, #5790fb, #3674e8); color: #fff; font-weight: 600; }
.event-description { margin: 28px 4px; color: #898592; font-size: 14px; line-height: 1.65; }
.event-description { white-space: pre-wrap; overflow-wrap: anywhere; }
#event-title, #event-time, #event-venue, .order-summary p { overflow-wrap: anywhere; }
.text-answer { width: 100%; min-height: 52px; margin-top: 42px; padding: 12px 16px; border: 1px solid #e4dcf0; border-radius: 12px; background: #faf8fd; color: #50435f; font: inherit; font-size: 16px; }
.text-answer.correct { border-color: #8ad3a5; background: #e1f6e8; color: #27925c; }
.text-answer.wrong { border-color: #e6a6a1; background: #fce8e7; color: #de6862; }
#submit-answer { min-height: 46px; margin-top: 20px; }
.event-footer { position: fixed; width: min(100%, 520px); bottom: 0; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 14px; align-items: center; padding: 14px 21px max(14px, env(safe-area-inset-bottom)); background: #fffffff2; box-shadow: 0 -7px 20px #d5d7e133; }
.practice-button { flex: 0 0 88px; min-height: 50px; padding: 0; border: 0; background: transparent; color: #855aba; font-size: 15px; }
.buy-button { width: 100%; min-height: 50px; border: 0; border-radius: 25px; background: linear-gradient(90deg, #5b93fb, #316fe6); color: #fff; font-size: 17px; font-weight: 600; box-shadow: 0 7px 15px #4d81e433; }
.sheet-backdrop { position: fixed; z-index: 10; top: 0; bottom: 0; left: 50%; width: min(100%, 520px); transform: translateX(-50%); display: flex; align-items: end; justify-content: center; padding: 0; background: #1d273766; }
.ticket-sheet, .safety-modal { position: relative; width: 100%; padding: 26px 26px max(24px, env(safe-area-inset-bottom)); border-radius: 25px 25px 0 0; background: #fff; text-align: left; }
.close-button { position: absolute; top: 19px; right: 22px; width: 33px; height: 33px; padding: 0; border: 0; background: transparent; color: #9c98a5; font-size: 35px; font-weight: 200; line-height: .8; }
.session-option { margin-top: 23px; padding: 12px 21px; border: 1px solid #bac4d8; border-radius: 12px; background: #fff; color: #666d7c; font-size: 15px; }
.session-option.selected, .ticket-prices button.selected { border-color: #5b8cf0; background: #f1f6ff; color: #3e77e9; }
.sheet-label { margin-top: 26px !important; }
.ticket-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 17px 0 26px; }
.ticket-prices button { min-height: 48px; border: 1px solid transparent; border-radius: 11px; background: #f7f8fb; color: #677083; font-size: 15px; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 27px; }
.quantity-row strong, .quantity-row small { display: block; }
.quantity-row strong { color: #606070; font-size: 17px; }
.quantity-row small { margin-top: 5px; color: #b0adba; font-size: 12px; }
.stepper { display: flex; align-items: center; gap: 16px; color: #555061; font-size: 18px; }
.stepper button { display: grid; place-items: center; width: 31px; height: 31px; border: 0; border-radius: 50%; background: #eff3fa; color: #747e93; font-size: 18px; }
.safety-modal { align-self: center; width: calc(100% - 42px); padding: 26px 25px 25px; border-radius: 14px; }
h2 { margin: 0; font-size: clamp(20px, 5.5vw, 25px); line-height: 1.52; letter-spacing: -.025em; }
.intro { margin: 14px auto 38px; max-width: 300px; color: #807b8c; font-size: 15px; line-height: 1.65; }
.primary-button, .secondary-button { width: 100%; min-height: 52px; border-radius: 10px; border: 0; font-weight: 650; transition: transform .15s ease; }
.primary-button { background: #8f64e8; color: #fff; box-shadow: 0 8px 18px #8f64e837; }
.primary-button:disabled { opacity: .45; box-shadow: none; }
.lock-notice { width: 100%; margin: 0 0 22px; padding: 13px 10px; border-radius: 10px; background: #fff2ed; color: #cf8470; font-size: 14px; line-height: 1.6; }
.secondary-button { margin-top: 12px; border: 1px solid #e9e7ee; background: #fff; color: #777180; }
button:active { transform: scale(.98); }
.fine-print { margin: 17px auto 0; color: #b4afbc; font-size: 12px; }
.quiz-screen { min-height: 100dvh; padding: max(10px, env(safe-area-inset-top)) 0 0; background: #f7f8fc; }
.quiz-header { height: 72px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 0 23px; background: #fff; }
.quiz-header h1 { margin: 0; color: #1d1a22; font-size: 18px; font-weight: 650; text-align: center; }
.back-button { width: 34px; height: 40px; padding: 0 0 4px; border: 0; background: transparent; color: #38343e; font-family: Arial, sans-serif; font-size: 43px; font-weight: 200; line-height: 1; text-align: left; }
.quiz-panel { min-height: calc(100dvh - 172px); margin: 100px 21px 0; overflow: hidden; border-radius: 18px 18px 0 0; background: #fff; }
.status-card { position: relative; padding: 23px 20px 19px; overflow: hidden; border-radius: 18px 18px 0 0; background: linear-gradient(116deg, #f0eaff, #f4eeff); }
.status-card::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: #d8c7ff; }
.status-copy { display: inline-flex; align-items: baseline; gap: 8px; color: #756e82; font-size: 15px; }
.status-copy strong { color: #9166ed; font-size: 22px; font-weight: 500; }
.timer-copy { float: right; gap: 3px; font-size: 14px; }
.timer-copy strong { font-size: 22px; font-variant-numeric: tabular-nums; }
#timer.warning { color: #ed746f; }
.progress-track { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; height: 4px; background: transparent; }
.progress-bar { height: 100%; width: 20%; background: #9061ee; transition: width .3s ease; }
.question-area { padding: 110px 32px 0; }
.question-type { display: inline-block; margin: 0 0 15px; padding: 4px 10px; border-radius: 3px; background: #976cf0; color: #fff; font-size: 14px; line-height: 1; }
#question { font-size: 17px; line-height: 1.65; font-weight: 550; text-align: center; }
.options { display: grid; max-width: 302px; gap: 29px; margin: 105px auto 0; }
.option { width: 100%; min-height: 68px; display: flex; align-items: center; justify-content: center; gap: 0; padding: 12px 18px; border: 0; border-radius: 50px; background: #f5f3f5; color: #26242b; text-align: center; font-size: 16px; line-height: 1.4; transition: background .15s ease, color .15s ease; }
.option-letter { margin-right: 5px; color: inherit; font-weight: 400; }
.option.correct { background: #e1f6e8; color: #27925c; }
.option.selected { background: #ece4ff; color: #8156c7; }
.option.wrong { background: #fce8e7; color: #de6862; }
.option:disabled { cursor: default; }
.hint { min-height: 22px; margin: 22px 0 0; color: #928b9d; font-size: 13px; text-align: center; }
.answer-explanation { margin: 15px 0; padding: 14px; border-radius: 10px; background: #faf7fe; color: #79688f; font-size: 13px; line-height: 1.7; }
.answer-explanation a { display: inline-block; margin-top: 6px; color: #9166d2; }
.study-controls { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; padding: 18px 0 28px; }
.study-controls button, .study-controls select { min-height: 40px; padding: 0 7px; border: 1px solid #dfd2f3; border-radius: 8px; background: #fff; color: #855fba; font-size: 13px; }
.study-controls button:disabled { opacity: .45; }
.quiz-screen.study-mode .question-area { padding-top: 46px; }
.quiz-screen.study-mode .options { margin-top: 35px; gap: 17px; }
.quiz-screen.study-mode .timer-copy strong { font-size: 16px; }
.quiz-screen.study-mode .quiz-panel { margin-top: 24px; }
.quiz-screen.many-options .question-area { padding-top: 32px; }
.quiz-screen.many-options .options { margin-top: 24px; gap: 12px; }
.quiz-screen.many-options .option { min-height: 52px; }
.quiz-screen.many-options .quiz-panel { margin-top: 28px; }
@media (max-height: 900px) {
  .quiz-panel { margin-top: 48px; }
  .question-area { padding-top: 50px; }
  .options { margin-top: 45px; gap: 22px; }
}
.result-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; background: #f0eaff; color: #8e64e7; font-size: 34px; }
.result-screen .eyebrow { margin: 0 0 10px; color: #9670dd; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.result-screen .intro { margin-bottom: 24px; }
.score-card { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 1px; margin: 0 0 30px; overflow: hidden; border: 1px solid #edeaf2; border-radius: 11px; background: #edeaf2; }
.score-card > div { padding: 16px 10px; background: #fff; }
.score-number { display: block; margin-bottom: 4px; color: #8e65e7; font-size: 22px; font-weight: 600; }
.score-label { color: #9a94a3; font-size: 12px; }
@media (max-width: 360px) { .quiz-panel { margin: 28px 12px 0; } .question-area { padding: 48px 18px 0; } .options { gap: 18px; margin-top: 46px; } .event-summary { grid-template-columns: 123px 1fr; } .event-poster { width: 123px; height: 166px; } .event-copy h2 { font-size: 17px; } .event-price { margin-top: 24px; } .status-card { padding-right: 14px; padding-left: 14px; } .status-copy { gap: 5px; font-size: 13px; } .timer-copy { font-size: 12px; } }

.demo-badge { display: inline-block; margin-top: 9px; padding: 3px 8px; border-radius: 5px; background: #f0e8fc; color: #9260c8; font-size: 11px; }
.sheet-rules { margin: 0 0 18px; color: #9691a0; font-size: 12px; line-height: 1.6; }
.centered { align-items: center; }
body.modal-open { overflow: hidden; }
.ticket-sheet { max-height: 92dvh; overflow-y: auto; }
.safety-modal h2 { color: #302c35; }
.shield-scene { height: 175px; margin: 13px auto 5px; text-align: center; }
.shield-scene svg { height: 100%; max-width: 100%; }
.safety-caption { margin: 9px 0 20px; color: #98929e; text-align: center; font-size: 11px; line-height: 1.6; }
.slide-track { position: relative; height: 46px; overflow: hidden; border: 1px solid #e6e1ec; border-radius: 5px; background: #f7f5f9; text-align: center; }
.slide-track > span { position: relative; display: block; padding-left: 38px; color: #928998; font-size: 11px; line-height: 44px; pointer-events: none; }
.slide-fill { position: absolute; inset: 0 auto 0 0; background: #eee3fc; }
.slide-handle { position: absolute; top: 0; left: 0; width: 44px; height: 44px; padding: 0; border: 0; border-right: 1px solid #ded7e8; border-radius: 4px; background: #fff; color: #ac8bcf; font-size: 22px; touch-action: none; user-select: none; cursor: grab; }
.slide-handle:active { cursor: grabbing; }
.slide-track.success .slide-fill { background: #e2f3e9; }
.slide-track.success > span, .slide-track.success .slide-handle { color: #49a875; }
.safety-demo { margin: 12px 0 0; color: #bbb4c2; text-align: center; font-size: 10px; }
.info-modal { width: calc(100% - 48px); padding: 26px; border-radius: 15px; background: #fff; }
.info-modal h2 { font-size: 19px; }
.info-modal p { margin: 16px 0 24px; color: #8b8195; font-size: 14px; line-height: 1.8; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .secondary-button { margin: 0; }
button:disabled { cursor: default; }
.buy-button:disabled, .stepper button:disabled, .text-action:disabled { opacity: .4; box-shadow: none; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid #9061ee; outline-offset: 3px; }
.flow-screen { background: #f8f9fc; }
.flow-content { padding: 24px 21px 115px; }
.flow-footer { position: fixed; z-index: 2; bottom: 0; left: 50%; width: min(100%, 520px); transform: translateX(-50%); padding: 14px 21px max(14px, env(safe-area-inset-bottom)); background: #fffffff5; border-top: 1px solid #efedf3; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading p { margin: 0; color: #77717e; font-size: 14px; }
.text-action { padding: 6px 0; border: 0; background: transparent; color: #4f82eb; font-size: 13px; }
.result-screen .text-action { margin-top: 16px; color: #936acb; }
.muted-note { color: #a09aa9; font-size: 12px; line-height: 1.75; }
.muted { color: #a09aa9; }
.attendee-list { display: grid; gap: 14px; margin: 22px 0; }
.attendee-card { display: flex; align-items: center; gap: 15px; padding: 22px 18px; border: 1px solid #ece9f2; border-radius: 12px; background: #fff; cursor: pointer; }
.attendee-card:has(input:checked) { border-color: #a9c1f4; background: #f5f8ff; }
.attendee-card input { width: 20px; height: 20px; margin: 0; accent-color: #5486ef; }
.attendee-card strong { display: block; color: #534d5b; font-size: 16px; font-weight: 550; }
.attendee-card small { display: block; margin-top: 9px; color: #aaa2b3; font-size: 12px; }
.detail-card { margin: 18px 0; padding: 20px 18px; border-radius: 12px; background: #fff; }
.detail-card h2 { margin: 0 0 19px; color: #58515e; font-size: 15px; font-weight: 600; }
.detail-card p { margin: 9px 0; font-size: 13px; line-height: 1.6; color: #817887; }
.order-summary { display: grid; grid-template-columns: 78px 1fr; gap: 14px; margin-bottom: 20px; }
.order-summary img { width: 78px; height: 105px; object-fit: cover; border-radius: 6px; background: #0c1b36; }
.order-summary p { margin: 0 0 7px; font-size: 12px; }
.order-summary p:first-child { color: #514956; font-size: 14px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; color: #8c8394; font-size: 13px; }
.price-row strong { color: #756b80; font-weight: 400; }
.price-row:last-child { padding-top: 14px; border-top: 1px solid #f1eef5; }
.price-row:last-child strong { color: #8c62c9; font-size: 18px; }
.order-footer { display: flex; align-items: center; gap: 18px; }
.order-footer > div { flex: 0 0 auto; color: #8b8195; font-size: 12px; }
.order-footer strong { display: block; margin-top: 3px; color: #9866d1; font-size: 22px; font-weight: 550; }
.order-footer .buy-button { flex: 1; }
.reservation-header { grid-template-columns: 34px 1fr 78px; padding: 0 18px; }
.reservation-header .text-action { color: #8e859b; font-size: 12px; }
.waiting-notice { padding: 20px 16px; border-radius: 12px; background: #edf3ff; text-align: center; }
.waiting-icon { display: block; margin-bottom: 10px; color: #6392ea; font-size: 30px; }
.waiting-notice strong { color: #6382b2; font-size: 14px; line-height: 1.8; font-weight: 500; }
.waiting-notice p { margin: 9px 0 0; color: #94a5c0; font-size: 11px; }
.reservation-number { margin: 24px 5px; color: #afa5b8; font-size: 12px; }
.reservation-number span { float: right; color: #998fa3; }
.reservation-link { width: 100%; padding: 15px; border: 0; border-radius: 9px; background: #f0f5ff; color: #6085c9; text-align: left; }
@media (max-height: 900px) { .quiz-panel { margin-top: 30px; } .question-area { padding-top: 42px; } .options { margin-top: 48px; gap: 20px; } .option { min-height: 58px; } }
@media (max-height: 680px) { .quiz-panel { margin-top: 20px; } .question-area { padding-top: 25px; } .options { margin-top: 28px; gap: 16px; } .option { min-height: 50px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
