.village-event-launcher {
  position: fixed; right: 14px; top: calc(max(10px, env(safe-area-inset-top)) + var(--top-h, 80px) + var(--online-h, 36px) + var(--alerts-h, 0px) + 16px); z-index: var(--z-alerts, 7);
  max-width: calc(100vw - 28px); min-height: var(--touch-target); padding: var(--space-2) var(--space-4);
  color: var(--ink); background: var(--surface-inset); border: 1px solid var(--border);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); font-weight: 700;
}
#quick-dock .village-event-launcher {
  position: relative; top: auto; right: auto; bottom: auto; width: auto; min-width: 44px;
  height: 44px; min-height: 44px; padding: 0 11px; max-width: none; font-size: 13px;
  border-radius: var(--radius-pill); background: var(--warning-surface); border-color: var(--even);
  display: flex; align-items: center; gap: 6px; flex: none;
}
#quick-dock .village-event-launcher[hidden] { display: none; }
#quick-dock .village-event-label { white-space: nowrap; font: 700 12px/1.2 var(--font-body); }
body:has(#quick-dock .is-open) #quick-dock .village-event-launcher { width: 44px; padding: 0; justify-content: center; font-size: 20px; }
body:has(#quick-dock .is-open) #quick-dock .village-event-label { display: none; }
@media (max-height: 500px) {
  #quick-dock .village-event-launcher { width: 44px; padding: 0; justify-content: center; font-size: 20px; }
  #quick-dock .village-event-label { display: none; }
}
/* Skin (surface, border, radius, shadow) is the shared dialog contract in style.css. */
.village-event-dialog {
  padding: 0; width: min(520px, calc(100vw - 24px));
  overflow-y: auto; overscroll-behavior: contain; font-family: var(--font-body);
}
.village-event-paper { padding: var(--space-5); background: radial-gradient(ellipse at top, var(--surface-raised), transparent 65%); }
.village-event-close { position: absolute; right: 8px; top: 8px; min-width: var(--touch-target); min-height: var(--touch-target); color: var(--muted); }
.village-event-kicker { margin: 0 36px var(--space-3) 0; color: var(--muted); font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.village-event-emblem { display: inline-block; font-size: 44px; line-height: 1.3; } /* inline box: its celebration scale never widens the card */
.village-event-dialog h2 { margin: var(--space-2) 0 var(--space-3); font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.25; color: var(--ink); }
.village-event-choices .village-event-shortage { color: var(--bad); font-weight: 700; }
.village-event-story, .village-event-result { font-size: var(--text-md); line-height: 1.6; }
.village-event-clock { color: var(--muted); font-size: var(--text-sm); font-weight: 600; }
.village-event-choices { display: grid; gap: var(--space-2); }
.village-event-choices button { display: grid; gap: var(--space-2); width: 100%; text-align: left; }
.village-event-choices strong { font-size: var(--text-md); }
.village-event-choices span { font-size: var(--text-sm); line-height: 1.5; }
.village-event-choices .village-event-cost { color: var(--muted); font-weight: 600; }
.village-event-shortage, .village-event-feedback { color: var(--bad); }
.village-event-feedback:empty { display: none; }
.village-event-footnote { font-size: var(--text-xs); color: var(--muted); margin-bottom: 0; line-height: 1.5; }
.village-event-history { list-style: none; padding: 0; }
.village-event-history li { border-left: 2px solid var(--border-soft); padding: var(--space-1) var(--space-3); margin: var(--space-3) 0; }
.village-event-history time { font-size: var(--text-xs); color: var(--muted); }
.village-event-history p { font-size: var(--text-sm); line-height: 1.6; margin: var(--space-1) 0; }
/* Keep aligned with SHEET_QUERY in mobile-ui.js. */
@media (max-width: 1100px) {
  .sheet-open .village-event-launcher { visibility: hidden; }
  .village-event-paper { padding: var(--space-4) var(--space-4); }
  .village-event-emblem { font-size: 32px; }
  .village-event-launcher { top: auto; bottom: calc(var(--bar-h, 80px) + env(safe-area-inset-bottom) + 12px); font-size: var(--text-sm); }
}
