.arcade-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  background: rgb(8 11 10 / 90%);
  box-shadow: 0 8px 28px rgb(0 0 0 / 28%);
  backdrop-filter: blur(20px);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.arcade-topbar .brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 1px 6px;
}

.arcade-topbar .brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgb(214 183 106 / 28%);
  border-radius: 12px;
  background: #0d1210;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}

.arcade-topbar .brand-mark::before {
  position: absolute;
  inset: 6px;
  border: 1px solid rgb(214 183 106 / 14%);
  border-radius: 10px;
  content: "";
}

.arcade-topbar .luxury-game-logo {
  position: relative;
  filter: drop-shadow(0 4px 8px rgb(0 0 0 / 50%));
}

.arcade-topbar .logo-glow { fill: rgb(214 168 68 / 16%); }
.arcade-topbar .logo-shield { fill: url(#arcadeLogoInk); stroke: url(#arcadeLogoGold); stroke-width: 1.35; }
.arcade-topbar .logo-crown, .arcade-topbar .logo-spark { fill: url(#arcadeLogoGold); }
.arcade-topbar .logo-mark { fill: none; stroke: url(#arcadeLogoGold); stroke-width: 2.1; stroke-linejoin: round; }

.arcade-brand-copy { flex: none; }
.arcade-topbar .brand-lockup strong { display: block; color: #ead99f; font-weight: 850; line-height: 1; }
.arcade-topbar .brand-lockup span {
  display: inline-flex;
  margin-top: 5px;
  padding: 3px 8px;
  border: 1px solid rgb(214 183 106 / 15%);
  border-radius: 999px;
  color: #aa9d79;
  background: rgb(214 183 106 / 4%);
  font-size: 11px;
  line-height: 1;
}

.arcade-topbar .top-actions { display: flex; align-items: center; gap: 10px; }
.arcade-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 9px;
  color: #e4c981;
  background: rgb(218 190 126 / 9%);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.arcade-home-link:hover { background: rgb(218 190 126 / 16%); }
.arcade-topbar a:focus-visible { outline: 2px solid #ae8730; outline-offset: 3px; border-radius: 9px; }

html[data-baoku-theme="light"] .arcade-topbar {
  border-bottom-color: var(--ui-border, #e0dfd5);
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

html[data-baoku-theme="light"] .arcade-topbar :is(.brand-mark, .brand-lockup span) {
  border-color: #daceac;
  color: #806018;
  background: #f6f2e6;
  box-shadow: none;
}

html[data-baoku-theme="light"] .arcade-topbar .brand-lockup strong { color: #806018; }
html[data-baoku-theme="light"] .arcade-home-link { color: #715018; }

@media (max-width: 760px) {
  .arcade-topbar { gap: 8px; }
  .arcade-topbar .brand-lockup span { padding: 2px 7px; }
}

@media (max-width: 640px) {
  .arcade-topbar .top-actions { gap: 5px; }
  .arcade-home-link { min-height: 36px; padding: 0 8px; font-size: 12px; }
}

@media (max-width: 480px) {
  .arcade-topbar .brand-lockup span { font-size: 10px; }
}
