.guest-missions { max-width: 48rem; margin-inline: auto; }
.guest-event-heading { padding: 1.5rem; border-radius: 1rem; background: var(--guest-surface); text-align: center; }
.guest-event-name { margin: 0; font: bold clamp(1.5rem, 4vw, 2.5rem)/1.15 var(--guest-heading-font); overflow-wrap: anywhere; }
.guest-event-details { overflow-wrap: anywhere; }
.guest-event-account { display: flex; align-items: center; justify-content: center; gap: 0.5rem 1rem; flex-wrap: wrap; font-size: 0.875rem; }
.guest-event-account p { margin: 0; }
.guest-text-button { min-height: 2.75rem; border: 0; padding: 0.5rem; background: transparent; color: var(--guest-accent); font: inherit; text-decoration: underline; cursor: pointer; }
.guest-section-heading { margin-bottom: 0.25rem; font: bold 1.6rem var(--guest-heading-font); }
.guest-missions-intro { margin-top: 0.25rem; }
.guest-submission-period { margin-block: 1rem; padding: 0.85rem 1rem; border-radius: 0.75rem; background: var(--guest-surface); font-weight: 700; }
.guest-mission-list { list-style: none; padding: 0; margin-block: 1.5rem; }
.guest-mission-list li { border-top: 1px solid #00000020; }
.guest-mission-list li:last-child { border-bottom: 1px solid #00000020; }
.guest-mission-link { box-sizing: border-box; display: grid; width: 100%; min-height: 4.5rem; grid-template-columns: 5.5rem minmax(0, 1fr) 1rem; align-items: center; gap: 1rem; padding: 1rem; border: 0; color: inherit; background: var(--guest-surface); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.guest-mission-link:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--guest-accent); outline-offset: 2px; }
.guest-mission-summary h2 { margin: 0 0 0.35rem; font: bold 1.25rem/1.25 var(--guest-heading-font); overflow-wrap: anywhere; }
.guest-mission-summary p { margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guest-reference { min-width: 0; overflow: hidden; border-radius: 0.75rem; background: var(--guest-soft); }
.guest-reference img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.guest-reference--stack { position: relative; aspect-ratio: 1; border-radius: 0; background: transparent; }
.guest-reference__photo { position: absolute; box-sizing: border-box; width: 68%; height: 68%; overflow: hidden; border: 2px solid var(--guest-surface); border-radius: 0.25rem; background: var(--guest-soft); box-shadow: 0 1px 3px #00000044; }
.guest-reference__photo:nth-child(1) { top: 0; left: 0; }
.guest-reference__photo:nth-child(2) { top: 16%; left: 16%; }
.guest-reference__photo:nth-child(3) { top: 32%; left: 32%; }
.guest-reference--stack .guest-reference__photo img { width: 100%; height: 100%; aspect-ratio: auto; }
.guest-reference--stack .guest-reference-placeholder { height: 100%; aspect-ratio: auto; padding: 0.2rem; font-size: 0.5rem; }
.guest-reference-placeholder { display: grid; align-content: center; text-align: center; aspect-ratio: 1; padding: 0.5rem; font-size: 0.75rem; overflow-wrap: anywhere; }
.guest-reference [hidden] { display: none; }
.guest-mission-complete { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; color: #fff; background: #217447; font-weight: 800; }
.guest-pagination { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.guest-pagination a { flex: 1 1 12rem; }
.guest-back-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-block: 1rem; color: var(--guest-accent); }
.guest-missions-empty { margin-block: 1.5rem; padding: 1.5rem; border-radius: 1rem; background: var(--guest-surface); }
.guest-upload-card { min-width: 0; padding: clamp(1rem, 5vw, 2rem); border-radius: 1.25rem; background: var(--guest-surface); }
.guest-upload-card h2 { margin-top: 0; font: bold clamp(1.5rem, 5vw, 2rem)/1.15 var(--guest-heading-font); overflow-wrap: anywhere; }

.guest-upload-dialog { box-sizing: border-box; width: min(42rem, calc(100% - 2rem)); max-width: 42rem; max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 1.25rem; color: inherit; background: transparent; overflow: auto; }
.guest-upload-dialog::backdrop { background: rgb(12 18 26 / 68%); }
.guest-upload-field { display: grid; gap: 0.5rem; margin-block: 1.25rem; }
.guest-upload-field label, .guest-upload-field-title { font-weight: 700; }
.guest-upload-field input, .guest-upload-field textarea { box-sizing: border-box; width: 100%; min-height: 2.75rem; padding: 0.7rem; border: 1px solid #00000055; border-radius: 0.5rem; font: inherit; }
.guest-upload-field input:focus-visible, .guest-upload-field textarea:focus-visible, .guest-upload-actions :focus-visible { outline: 3px solid var(--guest-accent); outline-offset: 2px; }
.guest-upload-picker { position: relative; display: grid; min-height: 10rem; place-content: center; justify-items: center; gap: 0.5rem; padding: 1rem; border: 2px dashed var(--guest-accent); border-radius: 0.75rem; background: var(--guest-soft); color: var(--guest-accent); text-align: center; cursor: pointer; overflow: hidden; }
.guest-upload-picker:has(.guest-upload-preview:not([hidden])) { place-content: normal; justify-items: normal; padding: 0; }
.guest-upload-picker:has(.guest-upload-file-input:focus-visible) { outline: 3px solid var(--guest-accent); outline-offset: 2px; }
.guest-upload-picker-prompt { display: grid; justify-items: center; gap: 0.5rem; pointer-events: none; }
.guest-upload-picker-prompt[hidden] { display: none; }
.guest-upload-picker-icon { font-size: 2rem; line-height: 1; }
.guest-upload-field .guest-upload-picker .guest-upload-file-input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.guest-upload-preview { display: block; width: 100%; height: 100%; max-height: 24rem; border-radius: 0.5rem; object-fit: cover; }
.guest-upload-preview[hidden] { display: none; }
.guest-upload-preview-badge { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.guest-upload-preview-badge[hidden] { display: none; }
.guest-upload-preview-badge-icon { position: absolute; display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 50%; box-shadow: 0 1px 4px #00000055; }
.guest-upload-preview-badge-icon--replace { top: 0.75rem; right: 0.75rem; color: var(--guest-accent); background: var(--guest-surface); }
.guest-upload-preview-badge-icon--pending { right: 0.75rem; bottom: 0.75rem; color: #fff; background: var(--guest-accent); }
.guest-upload-progress { flex: 1 1 12rem; height: 0.75rem; border-radius: 999px; background: #00000022; overflow: hidden; }
.guest-upload-progress[hidden] { display: none; }
.guest-upload-progress-bar { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--guest-accent); transition: width 0.2s ease; }
@media (prefers-reduced-motion: reduce) { .guest-upload-progress-bar { transition: none; } }
.guest-form-errors:not(:has(> *)) { display: none; }
.guest-form-errors { padding: 0.75rem 1rem; border-radius: 0.5rem; color: #7b1d19; background: #ffe8e5; }
.guest-upload-status { min-height: 1.5em; }
.guest-upload-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.guest-upload-actions button:disabled { opacity: 0.65; cursor: wait; }
@media (prefers-reduced-motion: reduce) { .guest-missions *, .guest-upload-dialog * { scroll-behavior: auto; transition-duration: 0.01ms !important; } }
@media (max-width: 400px) {
  .guest-event-heading { padding: 1rem; }
  .guest-mission-link { grid-template-columns: 4.5rem minmax(0, 1fr) 0.75rem; gap: 0.75rem; }
  .guest-mission-summary h2 { font-size: 1.1rem; }
}
.guest-gallery-back { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.5rem; margin: 0 0 0.5rem; padding: 0.25rem 0.125rem; color: var(--guest-accent); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.guest-gallery-head { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.75rem; align-items: center; padding: 0.875rem; border-radius: 1rem; background: var(--guest-surface); }
.guest-gallery-head__reference { width: 4rem; }
.guest-gallery-head .guest-reference-placeholder { padding: 0.2rem; font-size: 0.55rem; }
.guest-gallery-eyebrow { margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.68rem; font-weight: 800; color: var(--guest-accent); }
.guest-gallery-title { margin: 0.125rem 0 0.25rem; font: bold 1.28rem/1.15 var(--guest-heading-font); overflow-wrap: anywhere; }
.guest-gallery-prompt { margin: 0; font-size: 0.88rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guest-gallery-meta { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 0.375rem 0.75rem; padding-top: 0.625rem; border-top: 1px solid #0000001f; font-size: 0.78rem; }
.guest-gallery-meta strong { color: var(--guest-ink); }
.guest-your-photos { margin-top: 0.75rem; padding: 0.75rem; border: 1px solid #0000001f; border-radius: 1rem; background: var(--guest-surface); }
.guest-your-photos__head { display: flex; align-items: center; gap: 0.5rem; }
.guest-your-photos__title { margin: 0; font: bold 1rem var(--guest-heading-font); }
.guest-your-photos__count { padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--guest-soft); font-size: 0.75rem; font-weight: 800; }
.guest-your-photos__spots { margin-left: auto; font-size: 0.75rem; text-align: right; }
.guest-your-photos__strip { display: flex; gap: 0.5rem; margin: 0.625rem 0 0; padding: 0 0 0.125rem; overflow-x: auto; list-style: none; scrollbar-width: none; }
.guest-your-photos__strip::-webkit-scrollbar { display: none; }
.guest-your-photo-wrap { position: relative; flex: 0 0 auto; }
.guest-your-photo { position: relative; display: block; width: 4.75rem; height: 4.75rem; padding: 0; overflow: hidden; border: 0; border-radius: 0.75rem; background: var(--guest-soft); cursor: zoom-in; }
.guest-your-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guest-your-photo-remove { position: absolute; top: 0.25rem; right: 0.25rem; z-index: 1; }
.guest-your-photo-remove form { display: contents; }
.guest-your-photo-remove__button { display: grid; width: 1.75rem; height: 1.75rem; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--guest-surface); color: var(--guest-accent); box-shadow: 0 1px 4px #00000055; font-size: 1.1rem; font-weight: 800; line-height: 1; cursor: pointer; }
.guest-your-photo-remove__button:focus-visible { outline: 3px solid var(--guest-accent); outline-offset: 2px; }
.guest-your-photos__empty { margin: 0.625rem 0 0; font-size: 0.86rem; }
.guest-your-photos__add { min-height: 3.125rem; margin-top: 0.625rem; border-radius: 0.75rem; }
.guest-gallery-all-head { display: flex; align-items: end; gap: 0.625rem; margin: 1.125rem 0.125rem 0.5rem; }
.guest-gallery-heading { margin: 0; font: bold 1.12rem var(--guest-heading-font); }
.guest-gallery-note { margin: 0; font-size: 0.78rem; white-space: nowrap; }
.guest-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 0; list-style: none; }
.guest-gallery-photo { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 0.35rem; background: var(--guest-soft); cursor: zoom-in; }
.guest-gallery-photo:focus-visible, .guest-your-photo:focus-visible { outline: 3px solid var(--guest-accent); outline-offset: 2px; }
.guest-gallery-photo__image, .guest-gallery-photo__image img { display: block; width: 100%; height: 100%; }
.guest-gallery-photo__image img { object-fit: cover; }
.guest-gallery-photo__fallback { display: grid; height: 100%; place-items: center; padding: 0.5rem; font-size: 0.75rem; text-align: center; }
.guest-gallery-photo__author { position: absolute; left: 0.25rem; bottom: 0.25rem; display: flex; max-width: calc(100% - 0.5rem); align-items: center; gap: 0.25rem; }
.guest-gallery-photo__initials { display: grid; flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; place-items: center; border-radius: 50%; background: var(--guest-surface); color: var(--guest-accent); font-size: 0.55rem; font-weight: 800; }
.guest-gallery-photo__name { overflow: hidden; color: #fff; font-size: 0.62rem; font-weight: 700; text-overflow: ellipsis; text-shadow: 0 1px 4px #000000cc; white-space: nowrap; }
.guest-gallery-photo__crown { position: absolute; top: 0.25rem; right: 0.25rem; z-index: 1; display: grid; width: 1.4rem; height: 1.4rem; place-items: center; border-radius: 50%; background: #fff4dc; font-size: 0.8rem; }
.guest-gallery-photo__yours { position: absolute; top: 0.25rem; left: 0.25rem; z-index: 1; padding: 0.1rem 0.4rem; border-radius: 999px; background: var(--guest-accent); color: #fff; font-size: 0.58rem; font-weight: 800; }
.guest-gallery-empty { margin-top: 0.5rem; }
.guest-gallery-sticky { position: sticky; bottom: 0.75rem; margin-top: 1rem; }
.guest-gallery-sticky .guest-button { box-shadow: 0 0.5rem 1.5rem #20392c44; }
.guest-photo-dialog { box-sizing: border-box; width: min(44rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; overflow: auto; border: 0; border-radius: 1rem; background: transparent; color: inherit; }
.guest-photo-dialog::backdrop { background: rgb(12 18 26 / 72%); }
.guest-photo-dialog__surface { position: relative; overflow: hidden; border-radius: 1rem; background: var(--guest-surface); }
.guest-photo-dialog__close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1; display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid #00000022; border-radius: 50%; background: var(--guest-surface); font-size: 1.4rem; cursor: pointer; }
.guest-photo-dialog__image-wrap { display: flex; min-height: 12rem; align-items: center; justify-content: center; background: #201e1a; }
.guest-photo-dialog__image-wrap img { display: block; max-width: 100%; max-height: 62dvh; object-fit: contain; }
.guest-photo-dialog__details { padding: 1rem; overflow-wrap: anywhere; }
.guest-photo-dialog__details p { margin: 0.25rem 0; }
.guest-photo-dialog__caption { font: bold 1.1rem var(--guest-heading-font); }
.guest-photo-dialog__nav { display: flex; gap: 0.75rem; margin-top: 1rem; }
.guest-photo-dialog__nav .guest-button { flex: 1; }
@media (min-width: 35rem) {
  .guest-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .guest-gallery-head { grid-template-columns: 5.25rem minmax(0, 1fr); }
  .guest-gallery-head__reference { width: 5.25rem; }
}
.guest-archived__note { margin: 1rem 0; padding: 0.85rem 1rem; border-radius: 0.75rem; background: var(--guest-surface); }
.guest-archived__note h2 { font: bold 1.3rem var(--guest-heading-font); margin: 0 0 0.2rem; }
.guest-archived__note p { font-size: 0.88rem; color: #625e56; margin: 0; }
.guest-archived__partial { font-size: 0.88rem; color: #625e56; }
.guest-archived__card { margin: 0 0 1.4rem; }
.guest-archived__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.9rem; display: block; }
.guest-archived__card figcaption { padding: 0.6rem 0.2rem 0; display: flex; gap: 0.6rem; align-items: flex-start; }
.guest-archived__crown { width: 2rem; height: 2rem; border-radius: 50%; background: #fff4dc; color: #a83b1f; display: grid; place-items: center; font-size: 1.05rem; flex: 0 0 auto; }
.guest-archived__card strong { display: block; font: bold 1.05rem/1.35 var(--guest-heading-font); }
.guest-archived__card small { color: #625e56; font-size: 0.78rem; }
.guest-archived__prompt { display: block; font-size: 0.85rem; color: #435147; margin-top: 0.25rem; }
.guest-archived__empty { background: var(--guest-surface); border-radius: 1rem; padding: 1.4rem 1.1rem; text-align: center; margin-top: 1rem; }
.guest-archived__empty h3 { font: bold 1.2rem var(--guest-heading-font); margin: 0.4rem 0; }
.guest-archived__empty p { color: #625e56; font-size: 0.88rem; margin: 0; }
.guest-archived__foot { margin-top: 1.4rem; border-top: 1px solid #00000020; padding-top: 1rem; font-size: 0.82rem; color: #625e56; }
