:root { color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #8f1c17; }
button, input, textarea { font-family: inherit; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #d7ad62; outline-offset: 3px; }
.page { min-height: 100vh; min-height: 100dvh; background: #8f1c17; color: #f3efe6; display: flex; align-items: center; justify-content: center; font-family: -apple-system, BlinkMacSystemFont, "Noto Serif SC", serif; }
.frame { position: relative; width: min(100%, 540px); height: 100vh; height: 100dvh; overflow: hidden; background: #8f1c17; box-shadow: 0 0 42px rgba(20, 0, 0, .35); }
.previewImage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.video { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; background: #8f1c17; }
.topBar { position: absolute; z-index: 2; left: 0; right: 0; top: 0; padding: calc(env(safe-area-inset-top) + 12px) 14px 0; display: flex; justify-content: center; align-items: flex-start; pointer-events: none; }
.countdown { display: flex; align-items: baseline; gap: 7px; padding: 8px 12px; border: 1px solid rgba(243,239,230,.65); border-radius: 999px; background: rgba(100, 9, 7, .78); color: #fff9ee; box-shadow: 0 4px 18px rgba(0,0,0,.15); white-space: nowrap; font-size: 12px; backdrop-filter: blur(8px); }
.countdown strong { font-family: Georgia, serif; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.soundButton { position: absolute; right: 14px; top: calc(env(safe-area-inset-top) + 12px); pointer-events: auto; border: 1px solid rgba(243,239,230,.7); background: rgba(100, 9, 7, .78); color: #fff9ee; border-radius: 999px; padding: 8px 10px; min-width: 58px; font-size: 12px; cursor: pointer; }
.bottomBar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 12px; padding: 30px 18px calc(env(safe-area-inset-bottom) + 22px); background: linear-gradient(transparent, rgba(81, 6, 3, .72)); }
.primaryButton, .secondaryButton { min-width: 132px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 18px; font-size: 15px; font-weight: 600; letter-spacing: .08em; text-decoration: none; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.primaryButton { border: 1px solid #f3efe6; color: #9f2119; background: #f3efe6; }
.secondaryButton { border: 1px solid #f3efe6; color: #f3efe6; background: rgba(100, 9, 7, .72); }
.playButton { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #9f2119; background: #f3efe6; border: 0; border-radius: 999px; padding: 14px 24px; white-space: nowrap; font-size: 16px; box-shadow: 0 6px 22px rgba(0,0,0,.3); cursor: pointer; }
.videoFallback { position: absolute; inset: 27% 8% 25%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; text-align: center; background: rgba(80, 4, 0, .8); border-radius: 18px; }
.videoFallback p { margin: 0; }
.videoFallback a { color: #f3efe6; text-decoration: underline; }
.fallbackNote { font-size: 13px; line-height: 1.6; }
.modalBackdrop { position: fixed; z-index: 20; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(36, 0, 0, .66); font-family: -apple-system, BlinkMacSystemFont, "Noto Serif SC", serif; }
.modal { position: relative; width: min(100%, 540px); max-height: 90vh; max-height: 90dvh; overflow-y: auto; padding: 26px 24px calc(env(safe-area-inset-bottom) + 28px); border-radius: 20px 20px 0 0; color: #8e1a15; background: #f3efe6; box-shadow: 0 -14px 38px rgba(0,0,0,.2); }
.closeButton { position: absolute; right: 18px; top: 14px; width: 32px; height: 32px; border: 0; background: transparent; color: #8e1a15; font-size: 28px; cursor: pointer; }
.form { display: grid; gap: 16px; }
.form h2, .success h2 { margin: 0 0 4px; text-align: center; font-size: 26px; font-weight: 600; }
.form > label { display: grid; gap: 6px; font-size: 14px; }
.form input:not([type="radio"]), .form textarea { width: 100%; border: 1px solid #cba9a2; border-radius: 10px; background: #fffdf8; color: #59211e; padding: 11px 12px; font: inherit; font-size: 16px; }
.attendance { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.attendance label { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #a8312a; border-radius: 999px; padding: 10px 6px; font-size: 14px; cursor: pointer; }
.attendance input { accent-color: #a8312a; }
.peopleFields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.peopleFields label { display: grid; gap: 6px; font-size: 14px; }
.peopleHint { margin: -10px 0 0; color: #8e776e; font-size: 12px; }
.form .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; }
.submitButton { width: 100%; border: 0; border-radius: 999px; padding: 13px 20px; background: #b0221c; color: #fffaf2; font-size: 16px; font-weight: 600; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
.error { margin: 0; color: #b0221c; font-size: 14px; }
.success { display: grid; gap: 18px; text-align: center; }
.success p { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.noScript { position: fixed; inset: 30% 8% auto; z-index: 30; padding: 24px; color: #8e1a15; background: #f3efe6; border-radius: 18px; line-height: 1.8; }
@media (max-width: 380px) { .topBar { padding-left: 8px; padding-right: 8px; } .countdown { font-size: 11px; padding: 8px 9px; } .countdown strong { font-size: 12px; } .soundButton { right: 8px; min-width: 42px; padding: 8px 6px; } .bottomBar { gap: 8px; padding-left: 12px; padding-right: 12px; } .primaryButton, .secondaryButton { min-width: 0; flex: 1; padding-left: 10px; padding-right: 10px; font-size: 14px; } }
