#events-dialog {
  width: min(1120px, calc(100% - 30px));
  max-height: 90dvh;
  padding: clamp(12px, 2vw, 24px);
  overflow: hidden;
  border: 2px solid #ebbd35;
  border-radius: 8px;
  background: #190b0b;
  color: #fff0da;
}
#events-dialog[open] { display: flex; flex-direction: column; }
#events-dialog .panel-heading {
  flex: none;
  margin: 0 0 16px;
  padding: 20px 40px 16px;
  background: linear-gradient(#511717, #320d0e);
}
#events-dialog .panel-heading h2 {
  color: #ffda66;
  font-size: clamp(17px, 2.1vw, 27px);
  line-height: 1.35;
}
#events-dialog .panel-heading p { font: 600 14px/1.5 "MU Open Sans", sans-serif; color: #ffdaa0; }
#events-dialog .panel-x { top: 0; right: 0; width: 38px; height: 38px; }
.schedule-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #c69b42 #271011;
  scrollbar-width: thin;
}
.schedule-scroll:focus-visible { outline: 2px solid #f8dc8c; outline-offset: 2px; }
.schedule-table {
  width: 100%; table-layout: fixed; border-spacing: 0;
  font: 15px/1.65 Arial, sans-serif; text-align: left;
}
.schedule-table th, .schedule-table td { padding: 15px 17px; vertical-align: middle; }
.schedule-table thead th {
  position: sticky; top: 0; z-index: 1; background: #431717; color: #ffdb78;
  border-bottom: 2px solid #bc8b36;
  font-family: "MU Open Sans", sans-serif; font-weight: 600;
}
.schedule-table thead th:first-child { width: 22%; }
.schedule-table thead th:nth-child(2) { width: 44%; }
.schedule-table tbody tr { background: #2c1011; }
.schedule-table tbody tr:nth-child(even) { background: #381618; }
.schedule-table tbody th, .schedule-table tbody td { border-bottom: 1px solid #542825; }
.schedule-table tbody th { color: #ffda82; font: 600 15px/1.5 "MU Open Sans",sans-serif; }
.event-times { color: #92e8e6; font-variant-numeric: tabular-nums; }
.event-times time { white-space: nowrap; }
.event-prize { color: #fff2dd; }
.event-prize strong { color: #bde996; }
#events-dialog .panel-bottom { flex: none; margin-top: 12px; padding-top: 12px; }
@media (max-width: 620px) {
  #events-dialog { width: calc(100% - 16px); max-height: 94dvh; padding: 10px; }
  #events-dialog .panel-heading { margin-bottom: 8px; padding: 14px 30px 12px; }
  #events-dialog .panel-heading p { font-size: 12px; }
  .schedule-table, .schedule-table tbody { display: block; }
  .schedule-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .schedule-table tbody tr { display: block; padding: 12px 14px; }
  .schedule-table tbody th, .schedule-table tbody td { display: block; padding: 0; border: 0; }
  .schedule-table tbody th { margin-bottom: 5px; font-size: 16px; }
  .schedule-table tbody td { font-size: 14px; }
  .schedule-table .event-prize { margin-top: 4px; }
  .event-prize::before { content: "Thưởng: "; color: #ffdaa0; }
  #events-dialog .panel-bottom { margin-top: 6px; padding-top: 8px; }
}
