.event-popup { width: min(480px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: #fffdf7; color: #294b33; box-shadow: 0 20px 70px rgb(30 40 24 / 30%); }
.event-popup[open] { display: flex; flex-direction: column; }
.event-popup::backdrop { background: rgb(22 30 22 / 62%); }
html:has(body.event-popup-open), body.event-popup-open { overflow: hidden; }
.event-popup [hidden] { display: none !important; }
.event-popup-header, .event-popup-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; min-height: 48px; }
.event-popup-header h2 { margin: 0; font-size: 18px; font-weight: 700; }
.event-popup button { min-height: 44px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 16px; cursor: pointer; }
.event-popup .event-popup-close { min-width: 44px; font-size: 30px; line-height: 1; margin-right: -8px; }
.poster-tabs { display: grid; flex: 0 0 auto; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 12px 10px; padding: 4px; background: #edf0e7; border-radius: 9px; }
.poster-tabs [role='tab'] { font-size: 20px; font-weight: 700; border-radius: 6px; }
.poster-tabs [aria-selected='true'] { background: #355d3d; color: #fff; box-shadow: 0 2px 4px rgb(30 40 24 / 15%); }
.event-popup [role='tabpanel'], .event-popup-poster { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.event-popup-poster { width: 100%; text-decoration: none; }
.event-popup-poster img { display: block; flex: 1 1 auto; min-height: 0; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; }
.poster-apply { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px 10px; text-align: center; font-size: 17px; font-weight: 700; line-height: 1.5; word-break: keep-all; text-wrap: balance; background: #f0f5e9; color: #264e31; }
.event-popup-footer { border-top: 1px solid #e1e7d9; }
.event-popup-footer button { font-size: 15px; }
.event-popup :focus-visible { outline: 3px solid #bd2953; outline-offset: -3px; }
@media (max-width: 359px) { .poster-apply { font-size: 16px; gap: 4px; } }
