@charset "UTF-8";

.ending-invite { padding-block: 16px; text-align: center; }
.ending-invite button { background: none; border: 0; color: var(--blue); text-decoration: underline; cursor: pointer; min-height: 44px; }
.ending-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 52px 26px 26px; border: 1px solid var(--line); border-radius: 4px; background: #f6f7f5; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.ending-dialog::backdrop { background: rgb(20 28 28 / 82%); }
html.ending-modal-open { overflow: hidden; }
.ending-dialog [hidden] { display: none !important; }
.ending-close { position: absolute; top: 4px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 28px; cursor: pointer; }
.ending-dialog h2 { border: 0; background: none; padding: 0; margin: 0 0 22px; text-align: center; font-size: 18px; line-height: 1.8; }
.ending-rating { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.ending-rating legend { width: 100%; text-align: center; font-size: 14px; }
.ending-stars { display: flex; justify-content: center; gap: 6px; }
.ending-stars label { position: relative; display: grid; place-items: center; min-width: 44px; min-height: 48px; cursor: pointer; }
.ending-stars input, .ending-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ending-stars label > span[aria-hidden] { color: #899697; font-size: clamp(30px, 9vw, 40px); line-height: 1.2; }
.ending-stars label.is-selected > span[aria-hidden] { color: #876b24; }
.ending-stars input:focus-visible + span { outline: 3px solid #9a651d; outline-offset: 2px; }
.ending-label { display: block; margin-bottom: 8px; font-size: 14px; }
.ending-dialog textarea { display: block; box-sizing: border-box; width: 100%; min-height: 88px; padding: 10px; resize: vertical; border: 1px solid var(--line); background: white; color: var(--ink); font: inherit; font-size: 16px; }
.ending-dialog textarea:focus-visible { outline: 3px solid #9a651d; outline-offset: 2px; }
.ending-submit { display: block; min-height: 44px; margin: 20px auto 0; padding: 9px 34px; border: 0; border-radius: 3px; background: var(--blue); color: white; font-weight: 700; cursor: pointer; }
.ending-submit:disabled { opacity: .6; cursor: default; }
.ending-status { margin: 16px 0 0; font-size: 14px; text-align: center; }
.ending-status:empty { display: none; }
.ending-line { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; text-align: center; }
.ending-line p { font-size: 14px; }
.ending-line a { display: block; padding: 12px 16px; min-height: 44px; border-radius: 24px; background: #06c755; color: #102f1a; text-decoration: none; font-size: 15px; font-weight: 700; }
@media (max-width: 360px) { .ending-dialog { padding-inline: 16px; } .ending-stars { gap: 2px; } }
@media print { .ending-dialog, .ending-invite { display: none; } }
