/* ============================================================
   Announcement banner + feedback button (site-extras.js)
   ============================================================ */

/* ---------------------------------------------------------- announcement */
.ycp-notice {
  --tone: #b9a2ff;
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 84px);
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: min(640px, calc(100vw - 24px));
  padding: 4px 4px 4px 6px;
  border: 1px solid color-mix(in srgb, var(--tone) 42%, transparent);
  border-radius: 999px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tone) 24%, transparent), color-mix(in srgb, var(--tone) 6%, transparent)),
    rgb(14 10 22 / 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px -16px rgb(0 0 0 / 0.7), 0 0 30px -10px color-mix(in srgb, var(--tone) 50%, transparent);
  translate: -50% -12px;
  opacity: 0;
  transition: translate 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.ycp-notice[data-tone="party"] { --tone: #ff9fd0; }
.ycp-notice[data-tone="warn"] { --tone: #ffc970; }
.ycp-notice.is-in { translate: -50% 0; opacity: 1; }
.ycp-notice.is-leaving { translate: -50% -12px; opacity: 0; }
.ycp-notice__body {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 8px 6px 10px;
  color: var(--text-0, #f4f0ff);
  font-size: 0.86rem;
  line-height: 1.35;
  text-decoration: none;
}
.ycp-notice__body i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 10px var(--tone); animation: ycp-notice-pulse 2.2s ease-in-out infinite; }
.ycp-notice__text { min-width: 0; }
.ycp-notice__go { color: var(--tone); transition: translate 0.2s ease; }
a.ycp-notice__body:hover .ycp-notice__go { translate: 3px 0; }
.ycp-notice__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2, #b8aed0);
  font-size: 1.1rem;
  cursor: pointer;
}
.ycp-notice__close:hover { background: rgb(255 255 255 / 0.08); color: var(--text-0, #fff); }
@keyframes ycp-notice-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
html[data-motion="low"] .ycp-notice { transition: opacity 0.2s ease; }
html[data-motion="low"] .ycp-notice__body i { animation: none; }

/* -------------------------------------------------------- feedback button */
.ycp-fb-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 13px;
  border: 1px solid color-mix(in srgb, var(--accent, #c9b8ff) 40%, transparent);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgb(185 162 255 / 0.28), rgb(255 159 208 / 0.16)),
    rgb(16 11 26 / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 14px 34px -14px rgb(120 80 220 / 0.7);
  color: var(--text-0, #f4f0ff);
  font: 600 0.84rem/1 var(--font-sans, system-ui);
  cursor: pointer;
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.ycp-fb-fab:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 18px 40px -14px rgb(150 100 255 / 0.85); }
.ycp-fb-fab:active { transform: translateY(0) scale(0.96); }
.ycp-fb-fab:focus-visible { outline: 2px solid var(--accent-2, #ff9fd0); outline-offset: 3px; }
.ycp-fb-fab__icon { color: #ffd6ec; font-size: 1rem; animation: ycp-fb-twinkle 3s ease-in-out infinite; }
@keyframes ycp-fb-twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(20deg) scale(1.15); } }
html[data-motion="low"] .ycp-fb-fab__icon { animation: none; }
@media (max-width: 520px) {
  .ycp-fb-fab { padding: 12px; }
  .ycp-fb-fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------------------------------------------------------------- dialog */
.ycp-fb {
  /* the site reset zeroes every margin; a modal dialog is centred by margin: auto */
  margin: auto;
  max-height: calc(100svh - 24px);
  width: min(480px, calc(100vw - 24px));
  padding: 22px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 22px;
  background: linear-gradient(170deg, #1b1428, #110c1a 70%);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.06);
  color: var(--text-0, #f4f0ff);
}
.ycp-fb::backdrop { background: rgb(6 4 10 / 0.62); backdrop-filter: blur(4px); }
.ycp-fb[open] { animation: ycp-fb-in 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes ycp-fb-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
html[data-motion="low"] .ycp-fb[open] { animation: none; }
.ycp-fb__head { display: flex; align-items: center; justify-content: space-between; }
.ycp-fb__head h2 { margin: 0; font-size: 1.15rem; }
.ycp-fb__x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2, #b8aed0); font-size: 1.3rem; cursor: pointer; }
.ycp-fb__x:hover { background: rgb(255 255 255 / 0.08); color: var(--text-0, #fff); }
.ycp-fb__lede { margin: 4px 0 16px; color: var(--text-2, #b8aed0); font-size: 0.86rem; }
.ycp-fb__form { display: grid; gap: 12px; }
.ycp-fb__form[hidden] { display: none; }
.ycp-fb__types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ycp-fb__type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.03);
  color: var(--text-1, #ddd5f0);
  font-size: 0.84rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.2s ease;
}
.ycp-fb__type:hover { transform: translateY(-1px); }
.ycp-fb__type[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent, #c9b8ff) 60%, transparent); background: color-mix(in srgb, var(--accent, #c9b8ff) 16%, transparent); color: var(--text-0, #fff); }
.ycp-fb__message,
.ycp-fb__contact {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-field, #7d6f9c);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.03);
  color: var(--text-0, #fff);
  font: inherit;
  font-size: 0.9rem;
}
.ycp-fb__message { resize: vertical; min-height: 110px; }
.ycp-fb__message:focus, .ycp-fb__contact:focus { border-color: var(--accent-live, #b9a2ff); outline: none; box-shadow: 0 0 0 3px rgb(185 162 255 / 0.18); }
.ycp-fb__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ycp-fb__count { color: var(--text-2, #b8aed0); font-family: var(--font-mono, monospace); font-size: 0.66rem; }
.ycp-fb__note { min-height: 1.2em; margin: 0; color: #ffb3c4; font-size: 0.8rem; }
.ycp-fb__actions { display: flex; justify-content: flex-end; gap: 8px; }
.ycp-fb__done { display: grid; justify-items: center; gap: 8px; padding: 18px 0 6px; text-align: center; }
.ycp-fb__done[hidden] { display: none; }
.ycp-fb__done p { margin: 0 0 8px; color: var(--text-2, #b8aed0); font-size: 0.86rem; }
.ycp-fb__heart { color: #ff9fd0; font-size: 2.2rem; text-shadow: 0 0 22px rgb(255 159 208 / 0.6); animation: ycp-fb-beat 1.2s ease-in-out infinite; }
@keyframes ycp-fb-beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.18); } 60% { transform: scale(0.96); } }
html[data-motion="low"] .ycp-fb__heart { animation: none; }
