:root { color-scheme: light; font-family: Georgia, serif; background: #f4f0e8; color: #1d2925; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

main { width: min(42rem, 100%); padding: 2rem 1rem; }
h1 { font-size: clamp(2rem, 9vw, 4rem); margin: 0 0 1.5rem; }
form { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-size: 1.1rem; }
input { font: inherit; padding: .7rem; border: 2px solid #1d2925; border-radius: 2px; }
.file-control { cursor: pointer; padding: 1rem; background: #e7d6b5; border: 2px solid #1d2925; text-align: center; }
.file-control input { display: none; }
#gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: 1.5rem; }
#gallery figure { aspect-ratio: 1; margin: 0; overflow: hidden; background: #d4c8b4; position: relative; }
#gallery img { width: 100%; height: 100%; object-fit: cover; }
#gallery .media-placeholder { display: grid; place-content: center; gap: .35rem; padding: .5rem; box-sizing: border-box; text-align: center; color: #1d2925; }
#gallery .media-placeholder small { overflow-wrap: anywhere; }
#gallery figcaption { position: absolute; inset: auto 0 0; padding: .3rem; background: #1d2925cc; color: white; font-size: .75rem; }
#gallery button { position: absolute; inset: .4rem .4rem auto auto; z-index: 1; }
#guestbook { margin-top: 2rem; }
#guestbook textarea { min-height: 6rem; resize: vertical; font: inherit; padding: .7rem; border: 2px solid #1d2925; border-radius: 2px; }
#guestbook-entries { display: grid; gap: .75rem; margin-top: 1rem; }
#guestbook-entries article { padding: .75rem; background: #e7d6b5; }
#guestbook-entries p { margin: .35rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.wall-page { background: #101417; color: #f8f7f2; font-family: "Manrope", ui-sans-serif, system-ui, sans-serif; overflow: hidden; }
.wall-page #wall { width: 100vw; height: 100vh; position: relative; overflow: hidden; }
.local-cache-gate { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1rem; box-sizing: border-box; background: #101417; color: #f8f7f2; }
.local-cache-gate[hidden] { display: none; }
.local-cache-card { width: min(100%, 34rem); display: grid; gap: 1rem; padding: clamp(1.25rem, 5vw, 2.5rem); box-sizing: border-box; border: 1px solid rgb(255 255 255 / .2); border-radius: 1.25rem; background: rgb(4 48 34 / .94); box-shadow: 0 1rem 3rem rgb(0 0 0 / .3); }
.local-cache-card h1, .local-cache-card p { margin: 0; }
.wall-kicker { color: #b8e4c8; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.local-cache-card h1 { font-family: "Sora", ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.7rem, 6vw, 2.8rem); line-height: 1.05; }
.local-cache-card p:not(.wall-kicker) { color: rgb(248 247 242 / .84); line-height: 1.5; }
.local-cache-actions { display: grid; gap: .65rem; margin-top: .25rem; }
.local-cache-actions button { min-height: 3rem; padding: .75rem 1rem; border: 1px solid rgb(212 255 230 / .45); border-radius: .7rem; background: #65bd91; color: #0c2c1d; font: inherit; font-weight: 700; cursor: pointer; }
.local-cache-actions button + button { border-color: rgb(255 255 255 / .28); background: transparent; color: #f8f7f2; }
.local-cache-actions button:focus-visible { outline: 3px solid #d0ffe5; outline-offset: 3px; }
#wall-backdrop { position: absolute; inset: -8%; z-index: 0; overflow: hidden; pointer-events: none; }
#wall-backdrop img { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(2rem) brightness(.42) saturate(.8); transform: scale(1.08); }
.wall-stage { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(7rem, 18vw) minmax(0, 1fr) minmax(7rem, 18vw); grid-template-rows: minmax(0, 1fr); height: 100%; gap: clamp(.5rem, 2vw, 2rem); padding: clamp(.5rem, 2vw, 2rem); box-sizing: border-box; }
.wall-page[data-wall-theme="layered_rain"] .wall-stage { grid-template-columns: minmax(0, 1fr); }
.stage-frame { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .75rem; }
.stage { position: relative; min-width: 0; min-height: 0; block-size: 100%; isolation: isolate; overflow: hidden; }
.stage-media { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1.2rem 2.4rem #0006); -webkit-mask-image: radial-gradient(ellipse at center, #000 82%, #000d 90%, transparent 100%); mask-image: radial-gradient(ellipse at center, #000 82%, #000d 90%, transparent 100%); opacity: 0; transition: opacity 420ms ease-out; }
.stage-media.is-visible { opacity: 1; }
.wall-status { margin: 0; min-height: 1.4em; text-align: center; color: #d6dfdc; font-size: clamp(.8rem, 1.3vw, 1.1rem); }
.wall-title { font-family: "Sora", ui-sans-serif, system-ui, sans-serif; font-weight: 700; }
.wall-page[data-wall-theme="layered_rain"] .wall-title { max-inline-size: calc(100% - clamp(11rem, 22vw, 18rem)); margin-inline: 0 auto; }
.rain { --rain-gap: clamp(.3rem, 1vw, .8rem); --rain-duration: 19s; --rain-opacity: .68; position: relative; overflow: hidden; isolation: isolate; }
.wall-page[data-rain-profile="full"] .rain { --rain-duration: 14s; --rain-opacity: .78; }
.wall-page[data-rain-profile="light"] .rain { --rain-duration: 28s; --rain-opacity: .45; }
.rain-tile { --rain-size: calc((100% - var(--rain-gap)) / 2); width: var(--rain-size); aspect-ratio: 1; background: #273033; box-sizing: border-box; overflow: hidden; color: #cdd6d3; display: grid; place-items: center; font-size: .6rem; position: absolute; top: 0; left: var(--rain-x-px, calc(var(--rain-x) * 100%)); animation: rain-fall var(--rain-duration) linear infinite; animation-delay: calc(var(--rain-phase) * var(--rain-duration) * -1); }
.rain-tile img { width: 100%; height: 100%; object-fit: cover; }
.layered-rain { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; isolation: isolate; }
.layered-rain .rain-tile { left: var(--rain-x-px); animation-name: layered-rain-fall; }
.layered-rain .rain-tier-far { width: clamp(2.7rem, 5vw, 5.5rem); --rain-opacity: .28; --rain-duration: 31s; }
.layered-rain .rain-tier-mid { width: clamp(4rem, 7.5vw, 8rem); --rain-opacity: .42; --rain-duration: 24s; }
.layered-rain .rain-tier-near { width: clamp(5.5rem, 10vw, 11rem); --rain-opacity: .58; --rain-duration: 17s; }
.video-indicator { position: absolute; inset: auto .25rem .25rem auto; padding: .15rem .25rem; background: #101417dd; color: #fff; font-size: .55rem; font-weight: 700; }
.rain-tile.guestbook-tile { display: grid; align-content: center; gap: .35rem; padding: clamp(.45rem, 1vw, .8rem); border: 1px solid rgb(255 250 233 / .42); border-radius: .9rem; background: rgb(255 249 230 / .84); box-shadow: 0 .55rem 1.4rem rgb(0 0 0 / .2); color: #27352f; text-align: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.guestbook-tile-message { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin: 0; overflow: hidden; font-family: Georgia, serif; font-size: clamp(.58rem, 1.15vw, .95rem); font-weight: 600; line-height: 1.22; overflow-wrap: anywhere; }
.guestbook-tile-author { max-width: 100%; overflow: hidden; color: #50645a; font-family: "Manrope", ui-sans-serif, system-ui, sans-serif; font-size: clamp(.48rem, .75vw, .7rem); font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; text-overflow: ellipsis; white-space: nowrap; }
.stage-guestbook { position: absolute; inset: 8% 5%; display: grid; align-content: center; justify-items: center; gap: clamp(.6rem, 1.5vw, 1.1rem); padding: clamp(1.5rem, 5vw, 4rem); border: 1px solid rgb(255 250 233 / .52); border-radius: clamp(1rem, 2vw, 1.8rem); background: rgb(255 249 230 / .9); box-shadow: 0 1.2rem 3rem rgb(0 0 0 / .3); color: #27352f; text-align: center; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.stage-guestbook-quote { height: .5em; color: #648b72; font-family: Georgia, serif; font-size: clamp(3rem, 8vw, 6rem); line-height: .5; }
.stage-guestbook-message { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; max-width: 34rem; margin: 0; overflow: hidden; color: #27352f; font-family: Georgia, serif; font-size: clamp(1.2rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.28; overflow-wrap: anywhere; white-space: pre-wrap; }
.stage-guestbook-author { max-width: 100%; color: #50645a; font-size: clamp(.8rem, 1.3vw, 1.1rem); font-weight: 700; overflow-wrap: anywhere; }
@keyframes rain-fall { 0% { transform: translate3d(0, var(--rain-start-y, -120%), 0); opacity: 0; } 8%, 84% { opacity: var(--rain-opacity); } 100% { transform: translate3d(0, var(--rain-end-y, 100vh), 0); opacity: 0; } }
@keyframes layered-rain-fall { 0% { transform: translate3d(0, -120%, 0); opacity: 0; } 8%, 84% { opacity: var(--rain-opacity); } 100% { transform: translate3d(0, 100vh, 0); opacity: 0; } }
.wall-qr { position: absolute; right: clamp(1rem, 2.5vw, 2.5rem); bottom: clamp(2rem, 3.5vw, 3.5rem); width: clamp(9.333rem, 18.667vw, 16rem); padding: 1.067rem; box-sizing: border-box; background-color: rgb(4 48 34 / .9); color: #fff; border: 1px solid rgb(255 255 255 / .3); border-radius: 20px; box-shadow: 0 .8rem 2rem rgb(0 0 0 / .25); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); isolation: isolate; display: grid; gap: .4rem; text-align: center; z-index: 5; opacity: 1; mix-blend-mode: normal; }
.qr-inner { position: relative; z-index: 1; display: grid; padding: 14px; border-radius: 14px; background-color: #fff; aspect-ratio: 1; box-sizing: border-box; opacity: 1; mix-blend-mode: normal; }
.qr-mark { display: block; width: 100%; max-width: none; aspect-ratio: 1; background-color: #fff; opacity: 1; mix-blend-mode: normal; }
.qr-heading { margin: 0; color: #fff; font-family: "Sora", ui-sans-serif, system-ui, sans-serif; font-size: clamp(.92rem, 1.35vw, 1.2rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.05; text-align: center; text-transform: uppercase; }
.qr-host { overflow-wrap: anywhere; color: #fff; font-size: .867rem; font-size: clamp(.867rem, 1.2vw, 1.15rem); font-weight: 700; line-height: 1.1; text-align: center; }
.qr-details { display: grid; gap: .133rem; padding-top: .467rem; border-top: 1px solid rgb(255 255 255 / .55); overflow-wrap: anywhere; text-align: center; }
.qr-entry { display: grid; gap: .133rem; justify-items: center; }
.qr-entry-label { margin-top: .2rem; font-size: .773rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.qr-entry-code { justify-self: center; padding: .22rem .45rem; border-radius: .35rem; background-color: rgb(255 255 255 / .14); color: #fff; font-size: 1.04rem; line-height: 1.1; letter-spacing: .05em; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .wall-qr { background-color: rgb(4 48 34); }
  .wall-qr :is(.qr-heading, .qr-host, .qr-details, .qr-entry-code) { background-color: rgb(4 48 34); }
}
/* Kiosk fallback: launch /wall/<event-id>?qr_card=opaque to disable glass. */
.wall-page[data-qr-card="opaque"] .wall-qr { background-color: rgb(4 48 34); -webkit-backdrop-filter: none; backdrop-filter: none; }
.wall-page[data-qr-card="opaque"] .wall-qr :is(.qr-heading, .qr-host, .qr-details, .qr-entry-code) { background-color: rgb(4 48 34); }
@media (prefers-reduced-motion: reduce) {
  .wall-qr { background-color: rgb(4 48 34); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .wall-qr :is(.qr-heading, .qr-host, .qr-details, .qr-entry-code) { background-color: rgb(4 48 34); }
}
.certificate-status { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1rem; }
.certificate-status dt { font-weight: 700; }
.certificate-status dd { margin: 0; overflow-wrap: anywhere; }
.warning { color: #7a4d00; font-weight: 700; }
.danger { color: #8f1d1d; font-weight: 700; }

/* Admin workspace: dense, keyboard-friendly controls for repeated event setup. */
.admin-header, .admin-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.admin-header { border-bottom: 2px solid #1d2925; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.admin-header h1, .admin-section-heading h2 { margin: 0; }
.admin-header nav, .event-actions, .wizard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.admin-header nav { justify-content: flex-end; }
.admin-header a, .event-actions a, .admin-secondary a { color: #1d2925; font-weight: 700; }
.admin-kicker { margin: 0 0 .3rem; color: #506e5a; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.admin-status { min-height: 1.4em; overflow-wrap: anywhere; }
.button-link, .admin-action-button, .admin-header button, .wizard-actions button, #settings-form > button { display: inline-block; padding: .7rem 1rem; border: 2px solid #1d2925; border-radius: 2px; background: #1d2925; color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.admin-action-button:disabled { opacity: .55; cursor: wait; }
.event-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.event-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem) auto; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid #c7bda9; background: #fffaf1; }
.event-card h3 { margin: 0; overflow-wrap: anywhere; }
.inactive-event-card { background: #f2eee5; }
.event-slug { margin: .25rem 0 0; color: #506e5a; font-family: monospace; }
.event-facts, .review-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .3rem .8rem; margin: 0; }
.event-facts dt, .review-list dt { font-weight: 700; }
.event-facts dd, .review-list dd { margin: 0; overflow-wrap: anywhere; }
.wizard-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; padding: 0; margin: 1.5rem 0; list-style: none; counter-reset: steps; }
.wizard-steps li { padding: .55rem; border-top: 3px solid #c7bda9; color: #687066; font-size: .82rem; }
.wizard-steps li::before { counter-increment: steps; content: counter(steps) ". "; font-weight: 700; }
.wizard-steps li.is-current { border-color: #28563d; color: #1d2925; font-weight: 700; }
#event-wizard, #settings-form { gap: 1rem; }
#event-wizard fieldset, #settings-form fieldset { display: grid; gap: 1rem; margin: 0; padding: 1rem; border: 1px solid #c7bda9; background: #fffaf1; }
#event-wizard legend, #settings-form legend { padding: 0 .35rem; font-size: 1.2rem; font-weight: 700; }
.field-note { margin: 0; color: #506e5a; font-size: .9rem; overflow-wrap: anywhere; }
.check-row { display: flex; grid-template-columns: none; align-items: center; gap: .6rem; }
.byte-control { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: .5rem; align-items: center; }
.byte-display { margin: 0; color: #49534f; font-size: .9rem; }
.is-disabled { opacity: .7; }
.check-row input { width: 1.2rem; height: 1.2rem; }
.settings-summary { margin: 1rem 0; padding: .8rem 1rem; border-left: 4px solid #28563d; background: #e7d6b5; }
.settings-summary p { margin: .15rem 0; overflow-wrap: anywhere; }
.admin-secondary { margin-top: 2rem; border-top: 1px solid #c7bda9; padding-top: 1rem; }
.admin-secondary > summary { cursor: pointer; font-weight: 700; }
.admin-secondary section { margin-top: 1rem; }
main :is(input, select, textarea, button, a):focus-visible { outline: 3px solid #598465; outline-offset: 3px; }
.danger-button { border-color: #7d2020; background: #7d2020; color: #fff; }
.danger-button:hover { background: #641919; }
.delete-event-dialog { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100svh - 2rem); overflow: auto; padding: 0; border: 2px solid #7d2020; border-radius: .4rem; background: #fffaf1; color: #1d2925; box-shadow: 0 1rem 4rem rgba(0, 0, 0, .3); }
.delete-event-dialog::backdrop { background: rgba(12, 18, 15, .68); }
.delete-event-dialog section { display: grid; gap: 1rem; padding: clamp(1rem, 4vw, 1.6rem); }
.delete-event-dialog section[hidden] { display: none; }
.delete-event-dialog h2, .delete-event-dialog p { margin: 0; }
.delete-event-dialog label { display: grid; gap: .45rem; }
.delete-event-dialog input { width: 100%; min-width: 0; }
.delete-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; margin-top: .25rem; }
.delete-dialog-actions button { min-width: 8rem; }
@media (max-width: 700px) {
  .admin-header, .admin-section-heading, .event-card { display: block; }
  .admin-header nav { justify-content: flex-start; margin-top: 1rem; }
  .event-card > * + * { margin-top: 1rem; }
  .event-actions { justify-content: flex-start; }
  .wizard-steps { grid-template-columns: repeat(2, 1fr); }
  .delete-dialog-actions { display: grid; grid-template-columns: 1fr; }
  .delete-dialog-actions button { width: 100%; }
}
@media (max-width: 700px) {
  .wall-stage { grid-template-columns: 3.5rem minmax(0, 1fr) 11.42rem; gap: .35rem; padding: .35rem; }
  .rain-tile { width: 100%; left: 0; }
  .wall-qr { width: 10.267rem; padding: .6rem; border-width: .4rem; right: .8rem; bottom: 1.5rem; }
  .rain-tile.guestbook-tile { padding: .35rem; border-radius: .55rem; }
  .guestbook-tile-message { -webkit-line-clamp: 2; font-size: .62rem; }
  .guestbook-tile-author { font-size: .5rem; }
  .stage-guestbook { inset: 4% 2%; padding: 1.25rem; }
  .stage-guestbook-message { font-size: clamp(1.05rem, 5vw, 1.75rem); }
  .wall-status { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rain-tile { top: var(--rain-static-top, calc(var(--rain-phase) * 84%)); animation: none; opacity: var(--rain-opacity); }
  .layered-rain .rain-tier-far { top: 12%; } .layered-rain .rain-tier-mid { top: 43%; } .layered-rain .rain-tier-near { top: 70%; }
}

/* Guest upload theme: the same local artwork and typography as the join page. */
.guest-page {
  min-height: 100svh;
  background: linear-gradient(rgba(4, 22, 17, .38), rgba(4, 22, 17, .56)), url("/static/images/background.webp") center / cover no-repeat;
  color: #f4faf7;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
  align-items: start;
}
.guest-page *, .guest-page *::before, .guest-page *::after { box-sizing: border-box; }
.guest-page main { width: min(44rem, 100%); min-width: 0; padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 8vw, 6rem); }
.guest-header { padding: 0 clamp(.2rem, 2vw, .7rem) clamp(1.8rem, 5vw, 3rem); text-align: center; }
.guest-eyebrow { margin: 0 0 .8rem; color: rgba(234, 255, 244, .74); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.guest-page h1, .guest-page h2 { font-family: "Sora", ui-sans-serif, system-ui, sans-serif; }
.guest-page h1 { font-size: clamp(3rem, 11vw, 5.35rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; margin: 0; overflow-wrap: anywhere; }
.guest-page h2 { font-size: clamp(1.3rem, 4vw, 1.65rem); font-weight: 600; letter-spacing: -.04em; margin: 0; }
.guest-intro { color: rgba(244, 250, 247, .76); font-size: clamp(.94rem, 2.8vw, 1.05rem); margin: .85rem auto 0; max-width: 29rem; }
.guest-page .guest-card, .guest-page .event-entry-form, .guest-page .event-access-form {
  padding: clamp(1.1rem, 4vw, 1.8rem);
  background: rgba(8, 39, 30, .67);
  border: 1px solid rgba(224, 255, 237, .18);
  border-radius: 1.35rem;
  box-shadow: 0 1rem 2.75rem rgba(0, 0, 0, .22);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}
.guest-page .guest-card + .guest-card { margin-top: 1.15rem; }
.guest-page label { color: rgba(244, 250, 247, .92); font-size: .9rem; font-weight: 600; position: relative; }
.guest-page .field-hint { color: rgba(230, 249, 238, .62); font-size: .75rem; font-weight: 500; position: absolute; right: 0; top: .15rem; }
.guest-page input, .guest-page #guestbook textarea {
  width: 100%; min-width: 0; min-height: 48px; font: inherit; font-size: 1rem;
  border: 1px solid rgba(229, 255, 240, .2); border-radius: .8rem;
  background: rgba(246, 255, 249, .1); color: #f8fffa; padding: .75rem .9rem;
}
.guest-page input::placeholder, .guest-page textarea::placeholder { color: rgba(235, 253, 242, .55); font-weight: 400; }
.guest-page #guest-name.needs-name { border-color: #ff6b6b; box-shadow: 0 0 0 .2rem rgba(255, 70, 70, .22), 0 0 .95rem rgba(255, 70, 70, .55); }
.guest-page .name-requirement { margin: -.35rem 0 .15rem; color: #ffaaa4; font-size: .9rem; font-weight: 800; line-height: 1.35; }
.guest-page .name-requirement[hidden] { display: none; }
.guest-page #guestbook textarea { min-height: 7.25rem; }
.guest-page .file-control, .guest-page button {
  min-height: 50px; padding: .8rem 1rem; border: 1px solid rgba(212, 255, 230, .45);
  border-radius: .8rem; background: #65bd91; color: #0c2c1d;
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif; font-size: .87rem; font-weight: 650; cursor: pointer;
}
.guest-page .file-control:has(#camera) { background: rgba(237, 255, 244, .1); border-color: rgba(225, 255, 237, .24); color: #f2fbf5; }
.guest-page .file-control.requires-name { border-color: rgba(255, 107, 107, .72); background: rgba(255, 76, 76, .13); color: #ffd5d2; cursor: not-allowed; opacity: .78; }
.guest-page .file-control.requires-name:hover { filter: none; transform: none; }
.guest-page .file-control input { display: block; position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
.guest-page :is(input, textarea, button):focus-visible, .guest-page .file-control:focus-within { outline: 3px solid #d0ffe5; outline-offset: 3px; }
.guest-page button:disabled { opacity: .6; cursor: wait; }
.guest-page :is(#upload-status, #guestbook-status) { margin: 0; color: rgba(242, 255, 248, .8); font-size: .9rem; overflow-wrap: anywhere; }
.guest-page :is(#upload-status, #guestbook-status):empty { display: none; }
.guest-gallery { margin-top: 1.15rem; }
.guest-page #gallery { margin-top: 1rem; }
.guest-page #gallery figure { background: rgba(217, 255, 231, .14); border-radius: .45rem; }
.guest-page #gallery button { min-height: 44px; padding: .3rem .5rem; font-size: .75rem; }
.guest-page #guestbook-form { margin-top: 1.25rem; }
.guest-page .event-entry-form, .guest-page .event-access-form { margin-top: .5rem; }
.guest-page :is(.event-entry-form, .event-access-form) button { width: 100%; }
.guest-page #guestbook-own-entry { margin-top: 1rem; }
.guest-page #guestbook-own-entry article { padding: 1rem; border: 1px solid rgba(212, 255, 230, .42); border-radius: .8rem; background: rgba(101, 189, 145, .16); }
.guest-page #guestbook-own-entry strong { color: #f7fff9; }
.guest-page #guestbook-own-entry p { color: rgba(241, 254, 246, .9); }
.guest-page .guestbook-edit { min-height: 44px; margin-top: .6rem; padding: .55rem .8rem; font-size: .78rem; }
.guest-page #guestbook-entries article { padding: 1rem; border: 1px solid rgba(224, 255, 237, .13); border-radius: .8rem; background: rgba(235, 255, 244, .09); }
.guest-page #guestbook-entries strong { color: #f7fff9; }
.guest-page #guestbook-entries p { color: rgba(241, 254, 246, .8); }
.guest-page .leave-message-button { background: rgba(237, 255, 244, .1); border-color: rgba(225, 255, 237, .3); color: #f2fbf5; }
@media (hover: hover) {
  .guest-page button:hover, .guest-page .file-control:hover { filter: brightness(1.08); transform: translateY(-1px); }
}
@media (max-width: 380px) {
  .guest-page main { padding-inline: .8rem; }
  .guest-page .guest-card { padding: 1rem; border-radius: 1.1rem; }
}

/* Generic Event Code join surface. All imagery and typography are served locally. */
@font-face { font-family: "Sora"; src: url("/static/fonts/Sora/Sora-VariableFont_wght.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/static/fonts/Manrope/Manrope-VariableFont_wght.ttf") format("truetype"); font-display: swap; }
.join-page { min-height: 100svh; background: linear-gradient(rgba(4, 22, 17, .22), rgba(4, 22, 17, .36)), url("/static/images/background.webp") center / cover no-repeat; color: #f4faf7; align-items: stretch; }
.join-page .join-main { width: 100%; min-height: 100svh; padding: clamp(1.5rem, 5vw, 4rem) 1rem clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; }
.join-shell { width: min(100%, 30rem); display: grid; justify-items: center; text-align: center; }
.join-tagline, .join-attribution, .event-join-form { font-family: "Manrope", ui-sans-serif, system-ui, sans-serif; }
.join-tagline { margin: 0 0 .9rem; color: rgba(244, 250, 247, .72); font-size: clamp(.78rem, 2.4vw, .93rem); line-height: 1.55; }
.join-page h1 { margin: 0; color: #f4faf7; font-family: "Sora", ui-sans-serif, system-ui, sans-serif; font-size: clamp(2.75rem, 10vw, 4.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; white-space: nowrap; overflow-wrap: normal; }
.join-attribution { margin: .45rem 0 0; color: rgba(244, 250, 247, .63); font-size: .72rem; letter-spacing: .04em; }
.event-join-form { width: min(100%, 21rem); margin-top: clamp(3.8rem, 12vh, 7rem); display: grid; gap: .75rem; padding: .8rem; border: 1px solid rgba(255, 255, 255, .11); border-radius: 1.15rem; background: rgba(5, 25, 20, .36); box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.event-join-form input { min-height: 3.25rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: .75rem; background: rgba(255, 255, 255, .08); color: #f4faf7; font-family: "Sora", ui-sans-serif, system-ui, sans-serif; font-size: 1rem; font-weight: 500; letter-spacing: .13em; text-align: center; text-transform: uppercase; }
.event-join-form input::placeholder { color: rgba(244, 250, 247, .56); font-weight: 500; opacity: 1; }
.event-join-form button { min-height: 3.25rem; border: 1px solid rgba(219, 255, 239, .5); border-radius: .75rem; background: #5eb88d; color: #102d20; font-family: "Sora", ui-sans-serif, system-ui, sans-serif; font-size: .9rem; font-weight: 650; letter-spacing: .09em; }
.event-join-form button:hover { background: #78c9a0; filter: none; }
.event-join-form button:active { transform: translateY(1px); }
.event-join-form :is(input, button):focus-visible { outline: 3px solid #d0ffe5; outline-offset: 3px; }
.event-join-form #event-join-status { min-height: 1.3rem; margin: 0; color: #f4faf7; font-size: .8rem; line-height: 1.4; }
.join-promo { width: min(100%, 26rem); margin-top: clamp(2.5rem, 7vh, 4rem); padding: 1rem .75rem .85rem; border: 1px solid rgba(255, 255, 255, .1); border-top-color: rgba(255, 255, 255, .18); border-radius: 1.15rem; background: rgba(5, 25, 20, .42); color: rgba(244, 250, 247, .84); font-family: "Manrope", ui-sans-serif, system-ui, sans-serif; text-align: center; }
.join-promo p { margin: 0; font-size: .78rem; line-height: 1.45; }
.join-promo .join-promo-contact { margin-top: .3rem; color: rgba(244, 250, 247, .92); font-size: .8rem; overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.event-code-value { min-height: 1.5rem; margin: .5rem 0; font-family: monospace; font-size: 1.35rem; font-weight: 700; letter-spacing: .12em; }
#event-code-controls { margin-top: 1rem; }
#event-code-controls button { margin: .25rem .35rem .25rem 0; }
@media (max-width: 380px) { .event-join-form { margin-top: 2.75rem; } }
@media (max-width: 700px) and (max-height: 620px) {
  .event-join-form { margin-top: 2.75rem; }
  .join-promo { margin-top: 1.25rem; padding-top: .75rem; }
}
