/* Header and footer from AresuoRU/public_html/styles.css. */
.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(24, 16, 11, 0.58);
  border-bottom: 1px solid rgba(255, 221, 177, 0.14);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 18px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 210px;
}

.brand-logo {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(216, 180, 110, 0.25));
}

.online-badge {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid rgba(216, 180, 110, 0.35);
  background: rgba(216, 180, 110, 0.08);
  border-radius: 999px;
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.online-badge:hover {
  background: rgba(101, 232, 138, 0.14);
  box-shadow: inset 0 0 14px rgb(215 164 20 / 16%), 0 0 18px rgb(255 186 31 / 24%);
  transform: translateY(-1px);
}

.online-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #4dff78;
  box-shadow: 0 0 6px #4dff78, 0 0 14px rgba(77, 255, 120, 0.9);
}

.offline-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #ff0000;
  box-shadow: 0 0 6px #db091d, 0 0 14px rgb(157 35 35 / 90%);
}

.online-badge strong {
  margin-left: -5px;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 18px;
  flex-wrap: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a,
.nav-dropdown summary {
  position: relative;
  padding: 10px 12px;
  color: var(--muted);
  transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-dropdown summary:hover {
  color: #fff3cf;
  text-shadow: 0 0 6px rgba(255, 221, 144, 0.85), 0 0 16px rgba(216, 180, 110, 0.7);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "▾";
  font-size: 0.72rem;
  color: var(--gold-soft);
}

.nav-dropdown[open] summary::after {
  content: "▴";
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(255, 221, 177, 0.14);
  border-radius: 12px;
  background: rgba(24, 16, 11, 0.96);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.nav-dropdown-menu a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-dropdown-menu a:hover {
  background: rgba(216, 180, 110, 0.08);
  color: var(--text);
}

.footer {
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  border-top: 1px solid var(--line);
  background-image:
    linear-gradient(180deg, rgba(8, 6, 5, 0.82), rgba(8, 6, 5, 0.92)),
    url("/assets/site-shell/dungeon.png");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.footer-dragon {
  position: absolute;
  left: 12%;
  bottom: -8%;
  z-index: 0;
  width: min(550px, 40vw);
  max-width: none;
  opacity: 0.42;
  mix-blend-mode: screen;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 28px;
  padding-bottom: 32px;
}

.footer-brand p {
  margin: 0;
  max-width: 440px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-logo {
  width: 200px;
  height: auto;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-self: end;
  text-align: right;
}

.footer-column h4 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  text-transform: uppercase;
}

.footer-column a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--text);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.home-footer-bottom {
  grid-template-columns: 1fr auto;
}

.footer-bottom > *:first-child { justify-self: start; }
.footer-bottom > *:last-child { justify-self: end; text-align: right; }

/* Account controls stay in the header alongside the shared site navigation. */
[data-site-header] { display: contents; }
.topbar .user-chip { color: var(--text); font-size: 0.84rem; }
.topbar .signout-link { padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--gold-soft); }
.topbar .nav-button { padding: 10px 15px; border: 1px solid rgba(216, 180, 110, 0.36); border-radius: 8px; color: var(--text); background: rgba(216, 180, 110, 0.09); }
.page-shell { display: flex; flex-direction: column; }
.universal-page { flex: 1; padding-top: 90px; }
.page-layout-main { min-height: 0; }
.topbar > .container { width: min(1560px, calc(100% - 40px)); }
.topbar .nav-links { justify-content: flex-start; gap: 4px; margin-left: 0; font-size: 0.74rem; letter-spacing: 0.06em; }
.topbar .nav-links > a, .topbar .nav-dropdown summary { padding: 10px 8px; white-space: nowrap; }
.topbar-actions { flex-shrink: 0; margin-left: auto; }
.topbar .user-chip { display: inline; }
.mobile-nav-toggle { display: none; }
.topbar .nav { justify-content: flex-start; padding-right: 100px; }
.language-switch { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid rgba(216, 180, 110, 0.35); border-radius: 8px; }
.language-switch a { display: flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 4px 6px; border-radius: 5px; color: var(--gold-soft); font: 600 0.8rem Inter, sans-serif; text-decoration: none; }
.language-switch a:hover { background: rgba(216, 180, 110, 0.12); }
.language-switch a[aria-current="true"] { background: var(--gold); color: #20170f; }
.footer img { display: block; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

@media (max-width: 1280px) {
  .topbar { position: sticky; max-height: 100svh; overflow-y: auto; background: rgba(24, 16, 11, 0.96); }
  .universal-page { padding-top: 0; }
  .topbar .nav { flex-wrap: wrap; min-height: 72px; gap: 10px; padding: 10px 100px 10px 0; }
  .topbar .brand-wrap { flex: 1; min-width: 0; gap: 10px; }
  .topbar .brand { min-width: 0; }
  .topbar .brand-logo { width: 160px; }
  .topbar .mobile-nav-toggle:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 12px; border: 1px solid var(--gold); border-radius: 8px; background: var(--bg-soft); color: var(--gold-soft); font: inherit; cursor: pointer; }
  .topbar .nav-links { order: 4; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px 0; margin: 0; font-size: 0.9rem; }
  .topbar .has-mobile-navigation:not(.mobile-navigation-open) > .nav-links { display: none; }
  .topbar .nav-links > a, .topbar .nav-dropdown summary { display: flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; }
  .topbar .nav-dropdown-menu { position: static; min-width: 0; box-shadow: none; }
  .topbar .nav-dropdown-menu a { min-height: 44px; padding: 12px; }
}
@media (max-width: 680px) {
  .topbar > .container { width: calc(100% - 24px); }
  .topbar .brand-logo { width: 130px; }
  .topbar .brand-wrap { flex-basis: 100%; }
  .topbar .topbar-actions { margin-left: auto; }
  .footer { padding-top: 48px; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; gap: 22px; }
  .footer-column, .footer-bottom > *:last-child { justify-self: start; text-align: left; }
  .footer-dragon { left: -15%; width: 400px; opacity: 0.25; }
}
