@font-face {
  font-family: "Open Sans UI";
  src: url("open-sans-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans UI";
  src: url("open-sans-semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans UI";
  src: url("open-sans-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ui-gold: #ffd428;
  --ui-rule: #845828;
  --ui-raised: inset 0 1px 0 #ffedb966, inset 0 -2px 2px #3f200d85,
               0 0 0 1px #6b450e, 0 2px 0 #301507, 0 0 13px #ffbe1b33, 0 5px 15px #10060066;
  --ui-small-edge: inset 0 1px 0 #fff1a84d, inset 0 -2px 0 #371c0c77, 0 2px 3px #11050088;
}
/* Apply one type family across the earlier page themes, including shorthand declarations. */
body, body * {
  font-family: "Open Sans UI", "Segoe UI", Arial, sans-serif !important;
  text-shadow: none !important;
}
body { font-size: 16px; line-height: 1.55; }
body :is(p, li, dd, summary), #dialog-body p, .faq-list details p,
.server-scroll, .schedule-table, .schedule-table tbody th, .schedule-table tbody td,
.server-tables :is(th,td), .news-row .news-open, .class-section p {
  font-size: 16px;
  line-height: 1.55;
}
.news-row .news-open, #dialog-body p, .class-section p, .faq-list details p { color: #f3e5cd; }
.news-row time, .site-footer > small, .site-footer .footer-links, .site-footer .footer-links > *,
.news-pages .page-summary, .news-heading > span { font-size: 13px; color: #e2c9ae; line-height: 1.5; }
#main-nav .nav-button, .site-header #main-nav .nav-button {
  font-size: 14px; line-height: 1.45; font-weight: 600;
}
.news-row .news-tag, .news-row .news-tag.dragon-badge {
  font-size: 13px; font-weight: 600; line-height: 1.5;
}
.site-footer > p, .hint, .manual { font-size: 15px; }
.panel-bottom .button, #content-dialog .button, .faq-list summary { font-size: 16px; line-height: 1.5; }
#information-dialog .panel-heading p, #events-dialog .panel-heading p { font-size: 14px; letter-spacing: .01em; }
.schedule-table, .server-tables, .news-row time, #payment-amount, #qr-amount { font-variant-numeric: tabular-nums; }
#information-dialog, #events-dialog, #guides-dialog, #content-dialog,
.news-panel, .class-section.panel, .server-reset, .schedule-scroll {
  border: 2px solid var(--ui-gold); border-radius: 8px; box-shadow: var(--ui-raised);
}
.schedule-scroll { border-width: 1px; }
html, dialog, .schedule-scroll, .server-scroll { scrollbar-color: var(--ui-gold) #261111; }
.site-header, .hero { border-bottom: 2px solid var(--ui-gold); }
.site-footer { border-top: 2px solid var(--ui-gold); }
.site-header #main-nav .nav-button:not(.dragon-badge),
.news-row .copy-news, .menu-toggle, .panel-bottom .button, #content-dialog .button,
.news-row .news-tag:not(.dragon-badge), .class-tabs button, .news-pages [aria-current],
nav[aria-label="Điều hướng nạp tiền"] a, .amount-presets button, .generate,
#save-qr, .memo button, .bank-details button {
  border-color: #e5af39;
  border-radius: 5px;
  box-shadow: var(--ui-small-edge);
}
.amount-presets .selected, .generate { border-color: #ffdf79; box-shadow: var(--ui-raised); }
#payment-form input { border-color: #e7b94d; box-shadow: inset 0 2px 4px #0009, 0 1px 0 #f5cb6240; }
.angel-frame::after { filter: drop-shadow(0 2px 1px #412009) drop-shadow(0 0 5px #e4ab2840); }
.server-tables table, .server-tables caption, .server-tables :is(th,td),
.schedule-table tbody :is(th,td), .news-row, .faq-list details, .panel-bottom, .bank-details > div {
  border-color: var(--ui-rule);
}
:is(button,a,input,summary):focus-visible { outline: 2px solid #fff1a6; outline-offset: 2px; }
/* Give the navigation matching outer gutters and room for the longer labels. */
.site-header { height: auto; }
.site-header .nav-wrap {
  width: min(1160px, calc(100% - 32px));
  min-height: 0;
  height: auto;
  margin-inline: auto;
  padding-block: 9px;
}
@media (min-width: 901px) {
  .site-header #main-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: auto;
    justify-content: stretch;
    align-items: stretch;
    gap: clamp(6px, .8vw, 12px);
  }
  .site-header #main-nav .nav-button {
    min-height: 40px;
    padding: 8px clamp(6px, .85vw, 14px);
  }
  .site-header #main-nav .dragon-badge { padding-inline: 17px; }
}
@media (max-width: 900px) {
  .site-header .nav-wrap { min-height: 56px; }
  .site-header #main-nav.open {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 16px 16px;
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
  }
  .site-header #main-nav .nav-button { min-height: 44px; white-space: normal; text-align: center; }
}
@media (max-width: 620px) {
  .site-header #main-nav.open { border: 1px solid var(--ui-gold); box-shadow: var(--ui-raised); }
  .news-row { grid-template-columns: 83px minmax(0,1fr) 30px; }
  .news-row .news-tag, .news-row .news-tag.dragon-badge { font-size: 12px; }
  #events-dialog .schedule-table tbody :is(th,td) { font-size: 16px; }
  .server-tables :is(th,td) { overflow-wrap: break-word; }
}
.news-open, .news-tag, .site-header .nav-button { text-decoration: none; }
.guide-articles { display: grid; gap: .55rem; padding-inline-start: 1.4rem; }
.guide-articles a, .news-heading .back-home { color: #ffdf93; text-underline-offset: .2em; }
